X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/air/samples/tasks/js/TaskWindow.js diff --git a/air/samples/tasks/js/TaskWindow.js b/air/samples/tasks/js/TaskWindow.js deleted file mode 100644 index ef89ad2d..00000000 --- a/air/samples/tasks/js/TaskWindow.js +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Ext JS Library 0.30 - * Copyright(c) 2006-2009, Ext JS, LLC. - * licensing@extjs.com - * - * http://extjs.com/license - */ - -Ext.air.NativeWindowManager.getTaskWindow = function(taskId){ - var win, winId = 'task' + taskId; - if(win = this.get(winId)) { - win.instance.orderToFront(); - } else { - win = new Ext.air.NativeWindow({ - id: winId, - file: 'task.html?taskId=' + taskId, - width: 500, - height:350 - }); - } - return win; -} - -Ext.air.NativeWindowManager.getReminderWindow = function(taskId){ - var win, winId = 'reminder' + taskId; - if(win = this.get(winId)) { - win.instance.orderToFront(); - } else { - win = new Ext.air.NativeWindow({ - id: winId, - file: 'reminder.html?taskId=' + taskId, - width:400, - height:140, - maximizable: false, - resizable: false - }); - } - return win; -} - -Ext.air.NativeWindowManager.getAboutWindow = function(){ - var win, winId = 'about'; - if(win = this.get(winId)) { - win.instance.orderToFront(); - } else { - win = new Ext.air.NativeWindow({ - id: winId, - file: 'about.html', - width:350, - height:300, - resizable: false, - type:'utility' - }); - } - return win; -} - -Ext.air.NativeWindowManager.getPrefWindow = function(){ - var win, winId = 'prefs'; - if(win = this.get(winId)) { - win.instance.orderToFront(); - } else { - win = new Ext.air.NativeWindow({ - id: winId, - file: 'preferences.html', - width:240, - height:150, - resizable: false, - type:'utility' - }); - } - return win; -}