X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/message-box/msg-box.js diff --git a/examples/message-box/msg-box.js b/examples/message-box/msg-box.js index 590b57de..a8eb5b4b 100644 --- a/examples/message-box/msg-box.js +++ b/examples/message-box/msg-box.js @@ -1,9 +1,8 @@ -/*! - * Ext JS Library 3.3.1 - * Copyright(c) 2006-2010 Sencha Inc. - * licensing@sencha.com - * http://www.sencha.com/license - */ +Ext.require([ + 'Ext.window.MessageBox', + 'Ext.tip.*' +]); + Ext.onReady(function(){ Ext.get('mb1').on('click', function(e){ Ext.MessageBox.confirm('Confirm', 'Are you sure you want to do that?', showResult); @@ -21,7 +20,7 @@ Ext.onReady(function(){ buttons: Ext.MessageBox.OKCANCEL, multiline: true, fn: showResultText, - animEl: 'mb3' + animateTarget: 'mb3' }); }); @@ -31,7 +30,7 @@ Ext.onReady(function(){ msg: 'You are closing a tab that has unsaved changes.
Would you like to save your changes?', buttons: Ext.MessageBox.YESNOCANCEL, fn: showResult, - animEl: 'mb4', + animateTarget: 'mb4', icon: Ext.MessageBox.QUESTION }); }); @@ -44,7 +43,7 @@ Ext.onReady(function(){ width:300, progress:true, closable:false, - animEl: 'mb6' + animateTarget: 'mb6' }); // this hideous block creates the bogus progress @@ -72,7 +71,7 @@ Ext.onReady(function(){ wait:true, waitConfig: {interval:200}, icon:'ext-mb-download', //custom class in msg-box.html - animEl: 'mb7' + animateTarget: 'mb7' }); setTimeout(function(){ //This simulates a long-running operation like a database save or XHR call. @@ -97,7 +96,7 @@ Ext.onReady(function(){ title: 'Icon Support', msg: 'Here is a message with an icon!', buttons: Ext.MessageBox.OK, - animEl: 'mb9', + animateTarget: 'mb9', fn: showResult, icon: Ext.get('icons').dom.value });