diff options
Diffstat (limited to 'skins/xstyle/javascript')
| -rw-r--r-- | skins/xstyle/javascript/global.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/skins/xstyle/javascript/global.js b/skins/xstyle/javascript/global.js index 9d69317..87f8741 100644 --- a/skins/xstyle/javascript/global.js +++ b/skins/xstyle/javascript/global.js @@ -172,11 +172,12 @@ function checkValue (valobj, msgname, cmd, wrongMsg, goodMsg) { function suche(question, urls, def, last) { var sstring = prompt(question, def); + if(!sstring || sstring.length <= 0 ) { + return + } if(! urls) urls = "?cmd=search&data="; - if(sstring) { - var url = urls + sstring; - } + var url = urls + sstring; if(last) { url = url + last; } |
