diff options
author | millette <millette@controlyourself.ca> | 2008-11-17 12:31:44 -0500 |
---|---|---|
committer | millette <millette@controlyourself.ca> | 2008-11-17 12:31:44 -0500 |
commit | e369c5f740ccf1b10bf97c41c72d8723dd21cd30 (patch) | |
tree | 5fe26aedb46fd814ed104fc49496dcb5756bc51d | |
parent | 87d0235b54613d97162ad0e90ac9a562332dbb41 (diff) |
nudge : added js code to enable ajax
darcs-hash:20081117173144-099f7-b475f072ddc36e03143e05698e86186955566db9.gz
-rw-r--r-- | actions/nudge.php | 4 | ||||
-rw-r--r-- | js/util.js | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/actions/nudge.php b/actions/nudge.php index 2685774a5..019c88b50 100644 --- a/actions/nudge.php +++ b/actions/nudge.php @@ -53,7 +53,7 @@ class NudgeAction extends Action { } function notify($user, $other) { - if ($other && $other->id != $user->id) { + if ($other->id != $user->id) { if ($other->email && $other->emailnotifynudge) { mail_notify_nudge($user, $other); } @@ -61,5 +61,5 @@ class NudgeAction extends Action { # XXX: notify by SMS } } - } + diff --git a/js/util.js b/js/util.js index d0673b839..53fc58011 100644 --- a/js/util.js +++ b/js/util.js @@ -89,6 +89,7 @@ $(document).ready(function(){ $("#nudge").ajaxForm ({ dataType: 'xml', success: function(xml) { $("#nudge").replaceWith(document._importNode($("#nudge_response", xml).get(0),true)); } }); + $("#nudge").each(addAjaxHidden); $("#nudge .submit").bind('click', function(e) { $(this).addClass("processing"); }); }); @@ -104,4 +105,4 @@ function doreply(nick,id) { } } return true; -}
\ No newline at end of file +} |