+++ /dev/null
-/*\r
- * Ext JS Library 0.30\r
- * Copyright(c) 2006-2009, Ext JS, LLC.\r
- * licensing@extjs.com\r
- * \r
- * http://extjs.com/license\r
- */\r
-\r
-Ext.onReady(function(){\r
- var win = window.nativeWindow;\r
- var opener = Ext.air.NativeWindow.getRootHtmlWindow();\r
- \r
- var d = new Date().clearTime(true);\r
- d = d.add('mi', opener.Ext.state.Manager.get('defaultReminder'));\r
- \r
- var time = new Ext.get('time');\r
- time.dom.value = d.format('g:i A'); \r
- \r
- var ok = new Ext.Button({\r
- text: 'OK',\r
- minWidth: 80,\r
- renderTo: 'btns',\r
- handler: function(){\r
- var t = Date.parseDate(time.getValue(), 'g:i A');\r
- if(t){\r
- var m = t.getMinutes() + (t.getHours()*60);\r
- opener.Ext.state.Manager.set('defaultReminder', m);\r
- }\r
- win.close();\r
- }\r
- });\r
- \r
- var close = new Ext.Button({\r
- text: 'Cancel',\r
- minWidth: 80,\r
- renderTo: 'btns',\r
- handler: function(){\r
- win.close();\r
- }\r
- });\r
- \r
- win.visible = true;\r
- win.activate();\r
-});\r
-\r
- \r
-\r