forked from leftypol/leftypol
ajax.js: add ajax_before_post event to be fired before posting (passing formData to be modified); vichan-devel#20
This commit is contained in:
parent
72b3220f72
commit
0aa76587ce
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ $(window).ready(function() {
|
|||
formData.append('json_response', '1');
|
||||
formData.append('post', submit_txt);
|
||||
|
||||
$(document).trigger("ajax_before_post", formData);
|
||||
|
||||
var updateProgress = function(e) {
|
||||
var percentage;
|
||||
if (e.position === undefined) { // Firefox
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue