-/*!
- * 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);
buttons: Ext.MessageBox.OKCANCEL,
multiline: true,
fn: showResultText,
- animEl: 'mb3'
+ animateTarget: 'mb3'
});
});
msg: 'You are closing a tab that has unsaved changes. <br />Would you like to save your changes?',
buttons: Ext.MessageBox.YESNOCANCEL,
fn: showResult,
- animEl: 'mb4',
+ animateTarget: 'mb4',
icon: Ext.MessageBox.QUESTION
});
});
width:300,
progress:true,
closable:false,
- animEl: 'mb6'
+ animateTarget: 'mb6'
});
// this hideous block creates the bogus progress
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.
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
});