Skip to content

Commit

Permalink
MINOR Removed unused jQuery.dialog creation in CMSMain.AddForm.js, wh…
Browse files Browse the repository at this point in the history
…ich causes mem leaks (now uses dedicated pages/add UI)
  • Loading branch information
chillu committed Jun 13, 2012
1 parent 6581831 commit f94f03d
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions 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.
Expand Down

0 comments on commit f94f03d

Please sign in to comment.