From f94f03defefb8261576a1bdd25366d2bfdc12f4d Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 13 Jun 2012 23:36:46 +0200 Subject: [PATCH] MINOR Removed unused jQuery.dialog creation in CMSMain.AddForm.js, which causes mem leaks (now uses dedicated pages/add UI) --- javascript/CMSMain.AddForm.js | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/javascript/CMSMain.AddForm.js b/javascript/CMSMain.AddForm.js index c9e2fb335d..6e4b7f83e0 100644 --- a/javascript/CMSMain.AddForm.js +++ b/javascript/CMSMain.AddForm.js @@ -1,37 +1,5 @@ (function($) { $.entwine('ss', function($){ - $('.cms-page-add-form-dialog').entwine({ - onmatch: function() { - this.dialog({ - autoOpen: false, - bgiframe: true, - modal: true, - height: 400, - width: 600, - ghost: true - }); - this._super(); - }, - onunmatch: function() { - this._super(); - } - }); - - $('.cms-page-add-form-dialog input[name=PageType]').entwine({ - onmatch: function() { - if(this.is(':checked')) this.trigger('click'); - this._super(); - }, - onunmatch: function() { - this._super(); - }, - onclick: function() { - var el = this.parents('li:first'); - el.setSelected(true); - el.siblings().setSelected(false); - } - }); - /** * Reset the parent node selection if the type is * set back to "toplevel page", to avoid submitting inconsistent state.