app.js 584 B

123456789101112131415161718
  1. SimpleTasksSettings = {
  2. // This property is used to turn on local storage. If set to false the php backend will be used.
  3. useLocalStorage: true
  4. };
  5. if (SimpleTasksSettings.useLocalStorage && !window.localStorage) {
  6. alert('Simple Tasks is configured to use HTML5 Local Storage, but your browser does not support Local Storage');
  7. } else {
  8. Ext.Loader.setPath('Ext.ux', '../ux/')
  9. Ext.Loader.setConfig({
  10. enabled: true
  11. });
  12. Ext.application({
  13. name: 'SimpleTasks',
  14. autoCreateViewport: true,
  15. controllers: ['Lists', 'Tasks']
  16. });
  17. }