From e9d8133b5d78e4021acfb9b040cdc274e94b7fbc Mon Sep 17 00:00:00 2001 From: Andreas Brachold Date: Sun, 13 Jan 2008 12:51:22 +0000 Subject: * Update translations * RECORDS: use File::stat * MOVETIMER: Add redirect if move timer updated * TIMER: tnew with fast=1 create timer from event, without prompt * Skins/search: program timer from selected events by joined list * Skins/redirect: close frame automated after 3 seconds * xstyle: Fix searchbox+cancel => call command --- skins/xstyle/javascript/global.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'skins/xstyle/javascript') 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; } -- cgit v1.2.3