From 908409a5d807cc1e89bac5ddee4fef3bd68236b0 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 02:35:45 +0000 Subject: [PATCH] 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 --- javascript/LeftAndMain.js | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index 5fd5cd11..f624598a 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -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.