nudge : added js code to enable ajax
darcs-hash:20081117173144-099f7-b475f072ddc36e03143e05698e86186955566db9.gz
This commit is contained in:
parent
87d0235b54
commit
e369c5f740
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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"); });
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user