summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_tables.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/diag_tables.php')
-rw-r--r--usr/local/www/diag_tables.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr/local/www/diag_tables.php b/usr/local/www/diag_tables.php
index eba3d5f..d6a468a 100644
--- a/usr/local/www/diag_tables.php
+++ b/usr/local/www/diag_tables.php
@@ -103,10 +103,13 @@ include("fbegin.inc");
window.location='diag_tables.php?type=' + entrytype;
}
function del_entry(entry) {
- new Ajax.Request("diag_tables.php?type=<?php echo $tablename;?>&delete=" + entry, {
- onComplete: function(response) {
- if (200 == response.status)
- new Effect.Fade($(response.responseText), { duration: 1.0 } );
+ jQuery.ajax("diag_tables.php?type=<?php echo $tablename;?>&delete=" + entry, {
+ complete: function(response) {
+ if (200 == response.status) {
+ // Escape all dots to not confuse jQuery selectors
+ name = response.responseText.replace(/\./g,'\\.');
+ jQuery('#' + name).fadeOut(1000);
+ }
}
});
}
OpenPOWER on IntegriCloud