forked from leftypol/leftypol
ajax.js: add ajax_after_post event
This commit is contained in:
parent
31097b89d1
commit
6fc4c02c4e
1 changed files with 1 additions and 0 deletions
|
@ -107,6 +107,7 @@ $(window).ready(function() {
|
||||||
}, 'html');
|
}, 'html');
|
||||||
}
|
}
|
||||||
$(form).find('input[type="submit"]').val(_('Posted...'));
|
$(form).find('input[type="submit"]').val(_('Posted...'));
|
||||||
|
$(document).trigger("ajax_after_post", post_response);
|
||||||
} else {
|
} else {
|
||||||
alert(_('An unknown error occured when posting!'));
|
alert(_('An unknown error occured when posting!'));
|
||||||
$(form).find('input[type="submit"]').val(submit_txt);
|
$(form).find('input[type="submit"]').val(submit_txt);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue