[Lada-commits] [PATCH 1 of 3] Added compiler tags for sencha cmd compiler and made the DateTime lib compile

Wald Commits scm-commit at wald.intevation.org
Thu Nov 7 12:15:16 CET 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1383821980 -3600
# Node ID f06a882ab7760997b94b12f19543b515e38fe68b
# Parent  eeeaea114249a8097f2ec3ac14b7f39807fc2b91
Added compiler tags for sencha cmd compiler and made the DateTime lib compile.

diff -r eeeaea114249 -r f06a882ab776 app.js
--- 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
diff -r eeeaea114249 -r f06a882ab776 index.html
--- 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>


More information about the Lada-commits mailing list