summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-20 07:02:11 +0100
committerAndrew Dolgov <[email protected]>2007-08-20 07:02:11 +0100
commit768858f1e3453a4ebbaedde9280d3bc0e5235c03 (patch)
tree571f72c4a2c84b5289f64837115ddbc6335a58af /functions.js
parent4adb243072ef5e4e53b82a7f7801aed756258d23 (diff)
fancier label test dialog
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/functions.js b/functions.js
index 9e21e0d4e..b9becec50 100644
--- a/functions.js
+++ b/functions.js
@@ -1924,7 +1924,11 @@ Position.Center = function(element, parent) {
function labeltest_callback() {
var container = document.getElementById('label_test_result');
if (xmlhttp.readyState == 4) {
+
container.innerHTML=xmlhttp.responseText;
+ if (!Element.visible(container)) {
+ Effect.SlideDown(container, { duration : 0.5 });
+ }
notify("");
}
}
@@ -1932,14 +1936,14 @@ function labeltest_callback() {
function labelTest() {
var container = document.getElementById('label_test_result');
- container.style.display = "block";
- container.innerHTML = "<p>Loading, please wait...</p>";
var form = document.forms['label_edit_form'];
var sql_exp = form.sql_exp.value;
var description = form.description.value;
+ notify_progress("Loading, please wait...");
+
xmlhttp.open("GET", "backend.php?op=pref-labels&subop=test&expr=" +
param_escape(sql_exp) + "&descr=" + param_escape(description), true);