app/scripts/views/dialog/basicWizard.js (37 lines of code) (raw):

App.WizardView = Ember.View.extend({ templateName: 'dialog/basicWizard', controller: App.WizardController.create(), didInsertElement: function () { var view = this; this.get('controller').on('close', this, this.closeWizard); Ember.run.scheduleOnce("afterRender", this, function () { $(document).ready(function () { $("#editor-tabs").kendoTabStrip({ animation: false }); view.addMask(); }); }); }, addMask: function () { var maskHeight = $(document).height(); var maskWidth = $(window).width(); $('#editor-mask').css({ 'width': maskWidth, 'height': maskHeight }); $('#editor-mask').fadeTo("slow", 0.2); }, hideMask: function () { $('#editor-mask').hide(); }, closeWizard: function () { this.destroy(); this.hideMask(); }, actions: { cancel: function () { this.closeWizard(); } } });