From 5735cc41bae16a2f5c7562b767790a597636b233 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Thu, 17 Oct 2013 18:26:37 +0200 Subject: [PATCH] bug fix in GUI --- web/htdocs/commands/xmlpage.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); + } } } -- 2.43.0