summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_tables.php
diff options
context:
space:
mode:
authorVinicius Coque <vinicius.coque@bluepex.com>2011-10-16 18:04:40 -0200
committerVinicius Coque <vinicius.coque@bluepex.com>2011-10-16 18:05:23 -0200
commitebfc87d6b86ce83d93fe89d3f467846059fdd708 (patch)
treec9bbc2ad57e98ef1572c268f5c9da69deadf17d7 /usr/local/www/diag_tables.php
parente3c1ea9b9a415f30c7e7d6788c719119e50aa37d (diff)
downloadpfsense-ebfc87d6b86ce83d93fe89d3f467846059fdd708.zip
pfsense-ebfc87d6b86ce83d93fe89d3f467846059fdd708.tar.gz
Converting from prototype to jQuery
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