X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fquickedit%2Fjs%2Feditors%2FformEditor.js;fp=web%2Fcore%2Fmodules%2Fquickedit%2Fjs%2Feditors%2FformEditor.js;h=a53bc79e7b6d41daf318fd635cf8a9f694dd1767;hp=8a872edc57ef94b770f1083e7e2d932c4050dc1d;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/quickedit/js/editors/formEditor.js b/web/core/modules/quickedit/js/editors/formEditor.js index 8a872edc5..a53bc79e7 100644 --- a/web/core/modules/quickedit/js/editors/formEditor.js +++ b/web/core/modules/quickedit/js/editors/formEditor.js @@ -52,7 +52,12 @@ } }, getQuickEditUISettings: function getQuickEditUISettings() { - return { padding: true, unifiedToolbar: true, fullWidthToolbar: true, popup: true }; + return { + padding: true, + unifiedToolbar: true, + fullWidthToolbar: true, + popup: true + }; }, loadForm: function loadForm() { var fieldModel = this.fieldModel; @@ -122,16 +127,16 @@ var editorModel = this.model; var fieldModel = this.fieldModel; - function cleanUpAjax() { - Drupal.quickedit.util.form.unajaxifySaving(formSaveAjax); - formSaveAjax = null; - } - var formSaveAjax = Drupal.quickedit.util.form.ajaxifySaving({ nocssjs: false, other_view_modes: fieldModel.findOtherViewModes() }, $submit); + function cleanUpAjax() { + Drupal.quickedit.util.form.unajaxifySaving(formSaveAjax); + formSaveAjax = null; + } + formSaveAjax.commands.quickeditFieldFormSaved = function (ajax, response, status) { cleanUpAjax();