projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee048cd
)
ignore empty query values
author
Wolfram Schneider
<wosch@indexdata.dk>
Wed, 10 Dec 2014 11:47:55 +0000
(11:47 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Wed, 10 Dec 2014 11:47:55 +0000
(11:47 +0000)
examples/htdocs/tester.html
patch
|
blob
|
history
diff --git
a/examples/htdocs/tester.html
b/examples/htdocs/tester.html
index
f7ee011
..
1ad711f
100644
(file)
--- 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();
}