summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-24 08:05:20 +0100
committerAndrew Dolgov <[email protected]>2005-11-24 08:05:20 +0100
commitd9dde1d67aab87b461328b731b7b0e772f040565 (patch)
treecbee19eebc3671dbb2038d28f7bc2be9dca4a540 /prefs.js
parentcce28758b293bffa184f0617083691285a197032 (diff)
test button for label editor
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/prefs.js b/prefs.js
index 04b313836..c000ca19b 100644
--- a/prefs.js
+++ b/prefs.js
@@ -706,6 +706,19 @@ function feedEditSave() {
}
+function labelTest() {
+
+ var sqlexp = document.getElementById("iedit_expr").value;
+ var descr = document.getElementById("iedit_descr").value;
+
+ xmlhttp.open("GET", "backend.php?op=pref-labels&subop=test&expr=" +
+ param_escape(sqlexp) + "&descr=" + param_escape(descr), true);
+
+ xmlhttp.onreadystatechange=infobox_callback;
+ xmlhttp.send(null);
+
+}
+
function labelEditCancel() {
if (!xmlhttp_ready(xmlhttp)) {