1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 09:27:24 +01:00

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:
czaks 2014-01-29 23:31:39 +01:00
parent fe493f8cd9
commit 63ced41643

View File

@ -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