X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=examples%2Fhtdocs%2Ftester.html;h=d94988c840bcbf84403a0abf6b53f5710f77380a;hb=7d7a5862b72296ef76b6f4f5cfb7b0e89147b6a3;hp=f7ee011944e8f8618d48a5b6f4ff817939f7e1f8;hpb=ee048cdf6f9c8158590f9288998541ed0d1a09ca;p=mkws-moved-to-github.git diff --git a/examples/htdocs/tester.html b/examples/htdocs/tester.html index f7ee011..d94988c 100644 --- a/examples/htdocs/tester.html +++ b/examples/htdocs/tester.html @@ -6,11 +6,12 @@ MKWS demo: Reference & Credo, and popup widget, development - + @@ -34,7 +35,7 @@ - + @@ -339,6 +340,8 @@ $("#mkws-config").dialog("option", "buttons", [ // Queries dialog var updateQueries = function () { context.queries = $("#queries > textarea").val().split("\n"); + // ignore empty query values + context.queries = $.grep(context.queries, function (query, index) { return query.match(/^\s*\S+/) } ); localStorage.setItem("mkwstest-queries", JSON.stringify(context.queries)); startEval(); }