From 472689360722492fb0a744a73f3e743c95d7c968 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 02:39:24 +0000 Subject: [PATCH] BUGFIX Adjusted WidgetAreaEditor javascript to new event names triggered by CMS forms git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92679 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/WidgetAreaEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/WidgetAreaEditor.js b/javascript/WidgetAreaEditor.js index abb9f096..927978b7 100644 --- a/javascript/WidgetAreaEditor.js +++ b/javascript/WidgetAreaEditor.js @@ -58,7 +58,7 @@ WidgetAreaEditorClass.prototype = { // Ensure correct sort values are written when page is saved // TODO Adjust to new event listeners - $('Form_EditForm').observeMethod('BeforeSave', this.beforeSave.bind(this)); + jQuery('#Form_EditForm').bind('ajaxsubmit', this.beforeSave.bind(this)); }, rewriteWidgetAreaAttributes: function() {