ajax.js: add ajax_after_post event

This commit is contained in:
czaks 2014-10-18 15:31:48 +02:00
parent 31097b89d1
commit 6fc4c02c4e

View File

@ -107,6 +107,7 @@ $(window).ready(function() {
}, 'html');
}
$(form).find('input[type="submit"]').val(_('Posted...'));
$(document).trigger("ajax_after_post", post_response);
} else {
alert(_('An unknown error occured when posting!'));
$(form).find('input[type="submit"]').val(submit_txt);