Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 chillu authored
Showing with 0 additions and 32 deletions.
  1. +0 −32 javascript/CMSMain.AddForm.js
32 javascript/CMSMain.AddForm.js
View
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.