From 95d1c7295696187d64099ae374171e84ea0d9470 Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Sat, 15 Mar 2014 03:55:57 -0300 Subject: [PATCH] removing todo --- wise-editor/src/main/webapp/js/editor.js | 48 +----------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/wise-editor/src/main/webapp/js/editor.js b/wise-editor/src/main/webapp/js/editor.js index 41f734a6..1ae589cb 100644 --- a/wise-editor/src/main/webapp/js/editor.js +++ b/wise-editor/src/main/webapp/js/editor.js @@ -140,54 +140,10 @@ function loadDesignerOptions(jsonConf) { return result; } -// @Todo: This must be reimplemented using JQuery ... editor = {}; editor.WaitDialog = new Class({ initialize:function () { this.panel = this._buildPanel(); -// this.parent({ -// closeButton:false, -// destroyOnClose:true, -// autoOpen:false, -// useEscKey:false, -// title:'', -// onInitialize:function (wrapper) { -// wrapper.setStyle('opacity', 0); -// this.wrapper.setStyle('display', 'none'); -// this.fx = new Fx.Morph(wrapper, { -// duration:100, -// transition:Fx.Transitions.Bounce.easeOut -// }); -// }, -// -// onBeforeOpen:function () { -// this.overlay = new Overlay(this.options.inject, { -// duration:this.options.duration -// }); -// this.overlay.open(); -// this.fx.start({ -// 'margin-top':[-200, -100], -// opacity:[0, 1] -// }).chain(function () { -// this.fireEvent('show'); -// this.wrapper.setStyle('display', 'block'); -// -// }.bind(this)); -// }, -// -// onBeforeClose:function () { -// this.fx.start({ -// 'margin-top':[-100, 0], -// opacity:0, -// duration:200 -// }).chain(function () { -// this.fireEvent('hide'); -// this.wrapper.setStyle('display', 'none'); -// -// }.bind(this)); -// }} -// ); -// this.setContent(panel); }, _buildPanel:function () { @@ -200,11 +156,11 @@ editor.WaitDialog = new Class({ }, show:function () { - this.panel.modal(); + this.panel.modal('show'); }, close: function() { - this.panel.hide(); + this.panel.modal('hide'); } });