X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=examples%2Fhtdocs%2Ftester.html;h=4cda4d8b2e019a3f9314ce6baced8aeecaa0e8e4;hp=f7ee011944e8f8618d48a5b6f4ff817939f7e1f8;hb=26b79b908b393eaf0cac3dc047aa2f39bf67ad1b;hpb=ee048cdf6f9c8158590f9288998541ed0d1a09ca diff --git a/examples/htdocs/tester.html b/examples/htdocs/tester.html index f7ee011..4cda4d8 100644 --- a/examples/htdocs/tester.html +++ b/examples/htdocs/tester.html @@ -11,6 +11,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(); }