Permalink
Browse files

BUGFIX Adjusted WidgetAreaEditor javascript to new event names trigge…

…red by CMS forms

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92679 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 3725a98 commit 472689360722492fb0a744a73f3e743c95d7c968 @chillu chillu committed Nov 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 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() {

0 comments on commit 4726893

Please sign in to comment.