diff options
author | Vinicius Coque <vcoque@gmail.com> | 2011-11-15 16:09:31 -0200 |
---|---|---|
committer | Vinicius Coque <vcoque@gmail.com> | 2011-11-15 16:09:31 -0200 |
commit | a02ecc943fbda1c47fc25a19cad2b12c297bd346 (patch) | |
tree | 014169cac7020c748b82a34f5489f36c2b5ac975 /usr/local/www/diag_dump_states_sources.php | |
parent | 6134cc8fe04957d1337e3d94c8ebe66ca3e61946 (diff) | |
download | pfsense-a02ecc943fbda1c47fc25a19cad2b12c297bd346.zip pfsense-a02ecc943fbda1c47fc25a19cad2b12c297bd346.tar.gz |
Converting javascript code from scriptaculous to jQuery
Diffstat (limited to 'usr/local/www/diag_dump_states_sources.php')
-rw-r--r-- | usr/local/www/diag_dump_states_sources.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr/local/www/diag_dump_states_sources.php b/usr/local/www/diag_dump_states_sources.php index c4eda42..6081291 100644 --- a/usr/local/www/diag_dump_states_sources.php +++ b/usr/local/www/diag_dump_states_sources.php @@ -74,18 +74,18 @@ include("head.inc"); <script type="text/javascript"> function removeSource(srcip, dstip) { - var busy = function(icon) { - icon.onclick = ""; - icon.src = icon.src.replace("\.gif", "_d.gif"); - icon.style.cursor = "wait"; + var busy = function(index,icon) { + jQuery(icon).bind("onclick",""); + jQuery(icon).attr('src',jQuery(icon).attr('src').replace("\.gif", "_d.gif")); + jQuery(icon).css("cursor","wait"); } - $A(document.getElementsByName("i:" + srcip + ":" + dstip)).each(busy); + jQuery('img[name="i:' + srcip + ":" + dstip + '"]').each(busy); - new Ajax.Request( + jQuery.ajax( "<?=$_SERVER['SCRIPT_NAME'];?>" + "?action=remove&srcip=" + srcip + "&dstip=" + dstip, - { method: "get", onComplete: removeComplete } + { type: "get", complete: removeComplete } ); } @@ -96,8 +96,8 @@ include("head.inc"); return; } - $A(document.getElementsByName("r:" + values[1] + ":" + values[2])).each( - function(row) { Effect.Fade(row, { duration: 1.0 }); } + jQuery('tr[name="r:' + values[1] + ":" + values[2] + '"]').each( + function(index,row) { jQuery(row).fadeOut(1000); } ); } </script> |