Permalink
Browse files

MINOR Method renaming in CMSMain.js

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92634 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent c5895ca commit 502855cf24f210ca1a768323401f75177ac76c8e @chillu chillu committed Nov 21, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 javascript/CMSMain.js
View
@@ -147,15 +147,15 @@ var ss_MainLayout;
var parentTypeRootEl = $('#Form_EditForm_ParentType_root');
var parentTypeSubpageEl = $('#Form_EditForm_ParentType_subpage');
if(parentTypeRootEl) {
- parentTypeRootEl.onclick = this.rootClick.bind(this);
+ parentTypeRootEl.onclick = this._rootClick.bind(this);
}
if(parentTypeSubpageEl) {
parentTypeSubpageEl.onclick = this.showHide;
}
this.showHide();
},
- rootClick : function() {
+ _rootClick : function() {
$('#Form_EditForm_ParentID').val(0);
this.showHide();
},
@@ -288,7 +288,7 @@ var ss_MainLayout;
// add default option
// TODO i18n
- $('<option value="0">Add Criteria</option>').appendTo(self.SelectEl())
+ this('<option value="0">Add Criteria</option>').appendTo(self.SelectEl())
// populate dropdown values from existing fields
this.find('.field').each(function() {

0 comments on commit 502855c

Please sign in to comment.