1
0
forked from GitHub/gf-core

VoiceXML: use block cond instead of field expr. For some reason the field expr doesn't work right in Opera.

This commit is contained in:
bringert
2007-01-18 17:58:40 +00:00
parent 2b369e12aa
commit b9bd1ac68d

View File

@@ -138,7 +138,8 @@ cat2form :: String -> CatQuestions -> VIdent -> [(VIdent, [VIdent])] -> XML
cat2form gr qs cat fs =
form (catFormId cat) $
[var "old" Nothing,
field "term" [("expr", "old.name != '?' ? old : undefined")]
blockCond "old.name != '?'" [assign "term" "old"],
field "term" []
[promptString (getCatQuestion cat qs),
vxmlGrammar (gr++"#"++catFormId cat)
]