Permalink
Browse files

API CHANGE Removed ModalForm javascript class, obsolete

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92578 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 094c30e commit fca3fbdb686dbef732ecb75ba2f5e0fa1c9cdc59 @chillu chillu committed Nov 21, 2009
Showing with 0 additions and 18 deletions.
  1. +0 −18 javascript/LeftAndMain.js
View
@@ -643,24 +643,6 @@ ChangeTracker.prototype = {
}
}
-/*
- * ModalForm provides a form with the functionality to prevent certian actions from occurring until
- * it's been closed.
- *
- * To use, You should run the blockEvent method as many times as needed.
- */
-ModalForm = Class.extend('BaseForm');
-ModalForm.prototype = {
- /*
- * Prevent the given event from occurring on the given event while the form is open.
- * These must be CMS-created events, not built-in javascript events.
- * For example, form.blockEvent($('sitetree'), 'SelectionChanged')
- */
- blockEvent: function(element, event) {
- element.observeMethod(event, (function() { return !this.isVisible();}).bind(this) );
- }
-}
-
function hideLoading() {
if($('Loading')) $('Loading').style.display = 'none';
Element.removeClassName(document.body, 'stillLoading');

0 comments on commit fca3fbd

Please sign in to comment.