Advertisement
Guest User

app.js

a guest
Nov 23rd, 2012
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //<debug>
  2. Ext.Loader.setPath({
  3.     'Ext': 'touch/src',
  4.     'path': 'app'
  5. });
  6. //</debug>
  7.  
  8. Ext.application({
  9.     name: 'CallList',
  10.  
  11.     requires: [
  12.         'Ext.MessageBox',
  13.         'Ext.Ajax'
  14.     ],
  15.  
  16.     views: [
  17.         'Main',
  18.         'CallList',
  19.         'Blah'
  20.     ],
  21.  
  22.     icon: {
  23.         '57': 'resources/icons/Icon.png',
  24.         '72': 'resources/icons/Icon~ipad.png',
  25.         '114': 'resources/icons/Icon@2x.png',
  26.         '144': 'resources/icons/Icon~ipad@2x.png'
  27.     },
  28.  
  29.     isIconPrecomposed: true,
  30.  
  31.     startupImage: {
  32.         '320x460': 'resources/startup/320x460.jpg',
  33.         '640x920': 'resources/startup/640x920.png',
  34.         '768x1004': 'resources/startup/768x1004.png',
  35.         '748x1024': 'resources/startup/748x1024.png',
  36.         '1536x2008': 'resources/startup/1536x2008.png',
  37.         '1496x2048': 'resources/startup/1496x2048.png'
  38.     },
  39.  
  40.     launch: function() {
  41.         // Destroy the #appLoadingIndicator element
  42.         Ext.fly('appLoadingIndicator').destroy();
  43.  
  44.         // Initialize the main view
  45.         Ext.Viewport.add(Ext.create('CallList.view.Main'));
  46.        
  47.        
  48.     },
  49.  
  50.     onUpdated: function() {
  51.         Ext.Msg.confirm(
  52.             "Application Update",
  53.             "This application has just successfully been updated to the latest version. Reload now?",
  54.             function(buttonId) {
  55.                 if (buttonId === 'yes') {
  56.                     window.location.reload();
  57.                 }
  58.             }
  59.         );
  60.     }
  61. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement