changeset 421:f06a882ab776

Added compiler tags for sencha cmd compiler and made the DateTime lib compile.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 07 Nov 2013 11:59:40 +0100
parents eeeaea114249
children f9bb1ecf6462
files app.js index.html
diffstat 2 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/app.js	Fri Oct 11 13:05:01 2013 +0200
+++ b/app.js	Thu Nov 07 11:59:40 2013 +0100
@@ -1,3 +1,13 @@
+Ext.Loader.setConfig({
+    enabled: true,
+    paths: {
+        'Ext.ux.form.DateTimeField': 'resources/datetime/UX_DateTimeField.js',
+        'Ext.ux.DateTimeMenu': 'resources/datetime/UX_DateTimeMenu.js',
+        'Ext.ux.DateTimePicker': 'resources/datetime/UX_DateTimePicker.js',
+        'Ext.ux.form.TimePickerField': 'resources/datetime/UX_TimePickerField.js'
+    }
+});
+
 Ext.application({
 
     // Name of the application. Do not change as this name is used in
--- a/index.html	Fri Oct 11 13:05:01 2013 +0200
+++ b/index.html	Thu Nov 07 11:59:40 2013 +0100
@@ -4,12 +4,12 @@
     <title>Lada</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all-gray.css">
+    <!-- <x-compile> -->
+    <!-- <x-bootstrap> -->
     <script type="text/javascript" src="extjs/ext-all-debug.js"></script>
-    <script type="text/javascript" src="resources/datetime/UX_TimePickerField.js"></script>
-    <script type="text/javascript" src="resources/datetime/UX_DateTimePicker.js"></script>
-    <script type="text/javascript" src="resources/datetime/UX_DateTimeField.js"></script>
-    <script type="text/javascript" src="resources/datetime/UX_DateTimeMenu.js"></script>
+    <!-- </x-bootstrap> -->
     <script type="text/javascript" src="app.js"></script>
+    <!-- </x-compile> -->
 </head>
 <body></body>
 </html>

http://lada.wald.intevation.org