mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Method renaming in CMSMain.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92634 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c5895ca834
commit
502855cf24
@ -147,7 +147,7 @@ var ss_MainLayout;
|
|||||||
var parentTypeRootEl = $('#Form_EditForm_ParentType_root');
|
var parentTypeRootEl = $('#Form_EditForm_ParentType_root');
|
||||||
var parentTypeSubpageEl = $('#Form_EditForm_ParentType_subpage');
|
var parentTypeSubpageEl = $('#Form_EditForm_ParentType_subpage');
|
||||||
if(parentTypeRootEl) {
|
if(parentTypeRootEl) {
|
||||||
parentTypeRootEl.onclick = this.rootClick.bind(this);
|
parentTypeRootEl.onclick = this._rootClick.bind(this);
|
||||||
}
|
}
|
||||||
if(parentTypeSubpageEl) {
|
if(parentTypeSubpageEl) {
|
||||||
parentTypeSubpageEl.onclick = this.showHide;
|
parentTypeSubpageEl.onclick = this.showHide;
|
||||||
@ -155,7 +155,7 @@ var ss_MainLayout;
|
|||||||
this.showHide();
|
this.showHide();
|
||||||
},
|
},
|
||||||
|
|
||||||
rootClick : function() {
|
_rootClick : function() {
|
||||||
$('#Form_EditForm_ParentID').val(0);
|
$('#Form_EditForm_ParentID').val(0);
|
||||||
this.showHide();
|
this.showHide();
|
||||||
},
|
},
|
||||||
@ -288,7 +288,7 @@ var ss_MainLayout;
|
|||||||
|
|
||||||
// add default option
|
// add default option
|
||||||
// TODO i18n
|
// 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
|
// populate dropdown values from existing fields
|
||||||
this.find('.field').each(function() {
|
this.find('.field').each(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user