Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX Made CMSMain.js EditForm concrete rule more specifc, to avoid …

…problems with super()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92687 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 55ed72d2aa465e0b2e092f453a8ddb1dc9775cea 1 parent 73e9d88
@chillu chillu authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 javascript/CMSMain.js
View
6 javascript/CMSMain.js
@@ -122,9 +122,8 @@ var ss_MainLayout;
* @class CMS-specific form behaviour
* @name ss.EditForm
*/
- $('#Form_EditForm').concrete('ss', function($){
+ $('.CMSMain #Form_EditForm').concrete('ss', function($){
return/** @lends ss.EditForm */{
- /*
onmatch: function() {
// Alert the user on change of page-type - this might have implications
// on the available form fields etc.
@@ -134,9 +133,8 @@ var ss_MainLayout;
}
);
- $._super();
+ this._super();
}
- */
};
});
Please sign in to comment.
Something went wrong with that request. Please try again.