From: Jan Michel Date: Thu, 17 Oct 2013 16:26:37 +0000 (+0200) Subject: bug fix in GUI X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=5735cc41bae16a2f5c7562b767790a597636b233;p=daqtools.git bug fix in GUI --- diff --git a/web/htdocs/commands/xmlpage.pm b/web/htdocs/commands/xmlpage.pm index 4cbfd58..3421cbd 100644 --- a/web/htdocs/commands/xmlpage.pm +++ b/web/htdocs/commands/xmlpage.pm @@ -83,7 +83,9 @@ sub printJavaScripts { var text = e.target.getAttribute("cstr"); text += "\\nCurrent Value: "+e.target.innerHTML+" ("+e.target.getAttribute("raw")+")\\n "; var newval = prompt(text,e.target.getAttribute("raw")); - getdataprint('../xml-db/put.pl?'+e.target.getAttribute("cstr")+'-'+newval,'returntext',false,0,refresh); + if (newval != null) { + getdataprint('../xml-db/put.pl?'+e.target.getAttribute("cstr")+'-'+newval,'returntext',false,0,refresh); + } } }