diff --git a/bin/BrickEdit.js b/bin/BrickEdit.js index 02830b6cae1c620db55853d062984ee822694911..eed5a2c94f6e5120dd91162da91917d2c9e8aba1 100644 --- a/bin/BrickEdit.js +++ b/bin/BrickEdit.js @@ -5,16 +5,6 @@ * @module package/quiqqer/bricks/bin/BrickEdit * @author www.pcsg.de (Henning Leutz) * - * @require qui/QUI - * @require qui/controls/desktop/Panel - * @require package/quiqqer/bricks/bin/BrickAreas - * @require Ajax - * @require Locale - * @require qui/utils/Form - * @require utils/Controls - * @require utils/Template - * @require css!package/quiqqer/bricks/bin/BrickEdit.css - * * @event onLoaded [ this ] * @event onSave [ this ] * @event onDelete [ this ] @@ -297,7 +287,7 @@ define('package/quiqqer/bricks/bin/BrickEdit', [ var Prom = false, self = this; - if (Button == this.$Active) { + if (Button === this.$Active) { reject(); self.Loader.hide(); return; @@ -363,7 +353,7 @@ define('package/quiqqer/bricks/bin/BrickEdit', [ unload = this.$Active.getAttribute('name'), data = this.getAttribute('data'); - if (unload == 'information') { + if (unload === 'information') { data.attributes = Object.merge( data.attributes, QUIFormUtils.getFormData(Form) @@ -374,7 +364,7 @@ define('package/quiqqer/bricks/bin/BrickEdit', [ data.attributes.frontendTitle = Form.getElement('[name="frontendTitle"]').value; } - if (unload == 'settings') { + if (unload === 'settings') { data.attributes.areas = this.$Areas.getAreas().join(','); //data.attributes.width = Form.elements.width.value; //data.attributes.height = Form.elements.height.value; @@ -404,14 +394,14 @@ define('package/quiqqer/bricks/bin/BrickEdit', [ this.$Areas = false; } - if (unload == 'extra') { + if (unload === 'extra') { data.settings = Object.merge( data.settings, QUIFormUtils.getFormData(Form) ); } - if (unload == 'content') { + if (unload === 'content') { data.attributes.content = this.$Editor.getContent(); this.$Editor.destroy(); @@ -484,18 +474,6 @@ define('package/quiqqer/bricks/bin/BrickEdit', [ } }).inject(Content.getElement('.quiqqer-bricks-areas')); - //if ("width" in attributes) { - // Content.getElement('[name="width"]').value = attributes.width; - //} - // - //if ("height" in attributes) { - // Content.getElement('[name="height"]').value = attributes.height; - //} - // - //if ("classes" in attributes) { - // Content.getElement('[name="classes"]').value = attributes.classes; - //} - // flexble settings var i, len, data; @@ -709,7 +687,7 @@ define('package/quiqqer/bricks/bin/BrickEdit', [ '<td></td>' }).inject(TableBody); - if (setting.type != 'select') { + if (setting.type !== 'select') { Value = new Element('input', { type : setting.type, name : setting.name,