BUG. beforesubmitform should be triggered before saving data.

beforesubmitform should be triggered before saving data.
Othervise hidden input related to HtmlEditorField wouldn't be updated.
This commit is contained in:
uniun 2013-01-24 14:01:02 +02:00
parent 3d344f4db5
commit ac180615f3
1 changed files with 2 additions and 1 deletions

View File

@ -89,6 +89,7 @@
if ( url.indexOf('?') !== -1 ) cacheBuster = '&cacheBuster=' + cacheBuster;
else cacheBuster = '?cacheBuster=' + cacheBuster;
$(this).trigger('beforesubmitform');
data = $(this).serialize();
$.ajax({
@ -183,4 +184,4 @@
});
});
}(jQuery));
}(jQuery));