mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
API CHANGE Removed BaseForm javascript class, was never used in core
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92593 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3731deb460
commit
908409a5d8
@ -328,41 +328,6 @@ StatusTitle.prototype = {
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* BaseForm is the base form class used in the CMS.
|
||||
*/
|
||||
BaseForm = Class.create();
|
||||
BaseForm.prototype = {
|
||||
intitialize: function() {
|
||||
this.visible = this.style.display == 'none' ? false : true;
|
||||
|
||||
// Collect all the buttons and attach handlers
|
||||
this.buttons = [];
|
||||
var i,input,allInputs = this.getElementsByTagName('input');
|
||||
for(i=0;input=allInputs[i];i++) {
|
||||
if(input.type == 'button' || input.type == 'submit') {
|
||||
this.buttons.push(input);
|
||||
input.holder = this;
|
||||
input.onclick = function() { return this.holder.buttonClicked(this); }
|
||||
}
|
||||
}
|
||||
},
|
||||
show: function() {
|
||||
this.visible = true;
|
||||
Element.hide(show);
|
||||
},
|
||||
hide: function() {
|
||||
this.visible = false;
|
||||
Element.hide(this);
|
||||
},
|
||||
isVisible: function() {
|
||||
return this.visible;
|
||||
},
|
||||
buttonClicked: function(button) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* ChangeTracker is a class that can be applied to forms to support change tracking on forms.
|
||||
|
Loading…
Reference in New Issue
Block a user