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