From ac180615f3323ce2fb112fbfdad63755cb638398 Mon Sep 17 00:00:00 2001 From: uniun Date: Thu, 24 Jan 2013 14:01:02 +0200 Subject: [PATCH] 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. --- javascript/GridFieldBulkImageUpload.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/GridFieldBulkImageUpload.js b/javascript/GridFieldBulkImageUpload.js index 3543efc..eca48e9 100644 --- a/javascript/GridFieldBulkImageUpload.js +++ b/javascript/GridFieldBulkImageUpload.js @@ -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)); \ No newline at end of file +}(jQuery));