aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-01 17:16:20 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-01 17:16:20 +0000
commit9c15af33e3e585681154b0f34507c3ed0ee9a2b1 (patch)
tree06e4f0c54d5f2ce0e4be5a304b5f9e95af2b9fde /packages
parent96b2e054b1beaeb2c3fa77a697aef2955f63bbe0 (diff)
downloadpfsense-packages-9c15af33e3e585681154b0f34507c3ed0ee9a2b1.tar.gz
pfsense-packages-9c15af33e3e585681154b0f34507c3ed0ee9a2b1.tar.bz2
pfsense-packages-9c15af33e3e585681154b0f34507c3ed0ee9a2b1.zip
* Do not allow buttons to break
* After registering a action from ajax, shake the button so user can see more feedback. useful when you tag 10+ messages at once.
Diffstat (limited to 'packages')
-rw-r--r--packages/spamd_db.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/spamd_db.php b/packages/spamd_db.php
index 076b9d97..7d13d07f 100644
--- a/packages/spamd_db.php
+++ b/packages/spamd_db.php
@@ -107,6 +107,7 @@ function toggle_off(button) {
var currentbutton = item.src;
currentbutton = currentbutton.replace("_p.", ".");
item.src = currentbutton;
+ new Effect.Shake(item);
}
/* delete a row */
function delete_row_db(row) {
@@ -230,11 +231,11 @@ if (typeof getURL == 'undefined') {
$rowtext .= "<td class=\"list\">";
$srcip = $pkgdb_split[1];
$lastrow = $rows - 1;
- $rowtext .= "<a href='javascript:toggle_on(\"w{$rows}\", \"/themes/{$g['theme']}/images/icons/icon_plus_p.gif\"); getURL(\"spamd_db.php?buttonid=w{$rows}&srcip={$srcip}&action=whitelist\", outputrule);'><img title=\"Add to whitelist\" name='w{$rows}' id='w{$rows}' border=\"0\" alt=\"Add to whitelist\" src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\"></a> ";
+ $rowtext .= "<NOBR><a href='javascript:toggle_on(\"w{$rows}\", \"/themes/{$g['theme']}/images/icons/icon_plus_p.gif\"); getURL(\"spamd_db.php?buttonid=w{$rows}&srcip={$srcip}&action=whitelist\", outputrule);'><img title=\"Add to whitelist\" name='w{$rows}' id='w{$rows}' border=\"0\" alt=\"Add to whitelist\" src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\"></a> ";
$rowtext .= "<a href='javascript:toggle_on(\"b{$rows}\", \"/themes/{$g['theme']}/images/icons/icon_trapped_p.gif\");getURL(\"spamd_db.php?buttonid=b{$rows}&srcip={$srcip}&action=trapped\", outputrule);'><img title=\"Blacklist\" name='b{$rows}' id='b{$rows}' border=\"0\" alt=\"Blacklist\" src=\"/themes/{$g['theme']}/images/icons/icon_trapped.gif\"></a> ";
$rowtext .= "<a href='javascript:toggle_on(\"d{$rows}\", \"/themes/{$g['theme']}/images/icons/icon_x_p.gif\");getURL(\"spamd_db.php?buttonid=d{$rows}&srcip={$srcip}&action=delete\", outputrule);'><img title=\"Delete\" border=\"0\" name='d{$rows}' id='d{$rows}' alt=\"Delete\" src=\"./themes/{$g['theme']}/images/icons/icon_x.gif\"></a>";
$rowtext .= "<a href='javascript:delete_row_db(\"{$rows}\"); toggle_on(\"s{$rows}\", \"/themes/{$g['theme']}/images/icons/icon_plus_bl_p.gif\");getURL(\"spamd_db.php?buttonid=s{$rows}&srcip={$srcip}&action=spamtrap\", outputrule);'><img title=\"Spamtrap\" name='s{$rows}' id='s{$rows}' border=\"0\" alt=\"Spamtrap\" src=\"./themes/{$g['theme']}/images/icons/icon_plus_bl.gif\"></a> ";
- $rowtext .= "</td>";
+ $rowtext .= "</NOBR></td>";
$rowtext .= "</tr>";
if($srcip == "")
$dontdisplay = true;