Skip to content
This repository
Browse code

MINOR Removed unused jQuery.dialog creation in CMSMain.AddForm.js, wh…

…ich causes mem leaks (now uses dedicated pages/add UI)
  • Loading branch information...
commit f94f03defefb8261576a1bdd25366d2bfdc12f4d 1 parent 6581831
Ingo Schommer authored June 13, 2012

Showing 1 changed file with 0 additions and 32 deletions. Show diff stats Hide diff stats

  1. 32  javascript/CMSMain.AddForm.js
32  javascript/CMSMain.AddForm.js
... ...
@@ -1,37 +1,5 @@
1 1
 (function($) {
2 2
 	$.entwine('ss', function($){
3  
-		$('.cms-page-add-form-dialog').entwine({
4  
-			onmatch: function() {
5  
-				this.dialog({
6  
-					autoOpen: false,
7  
-					bgiframe: true,
8  
-					modal: true,
9  
-					height: 400,
10  
-					width: 600,
11  
-					ghost: true
12  
-				});
13  
-				this._super();
14  
-			},
15  
-			onunmatch: function() {
16  
-				this._super();
17  
-			}
18  
-		});
19  
-	
20  
-		$('.cms-page-add-form-dialog input[name=PageType]').entwine({
21  
-			onmatch: function() {
22  
-				if(this.is(':checked')) this.trigger('click');
23  
-				this._super();
24  
-			},
25  
-			onunmatch: function() {
26  
-				this._super();
27  
-			},
28  
-			onclick: function() {
29  
-				var el = this.parents('li:first');
30  
-				el.setSelected(true);
31  
-				el.siblings().setSelected(false);
32  
-			}
33  
-		});
34  
-
35 3
 		/**
36 4
 		 * Reset the parent node selection if the type is
37 5
 		 * set back to "toplevel page", to avoid submitting inconsistent state.

0 notes on commit f94f03d

Please sign in to comment.
Something went wrong with that request. Please try again.