From 5d5f2b0dd4f936c721f16d8ab0f675f894ec27f2 Mon Sep 17 00:00:00 2001 From: Renaud Le Gac <renaud.legac@free.fr> Date: Thu, 25 Feb 2010 18:01:19 +0000 Subject: [PATCH] Define the constant for the application only once. The order matter when calling the javascript library. Start with the script defining constants. --- static/appjs/appbase.js | 4 ---- views/applayout.html | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/static/appjs/appbase.js b/static/appjs/appbase.js index 802b26e5..842a8c31 100644 --- a/static/appjs/appbase.js +++ b/static/appjs/appbase.js @@ -14,14 +14,12 @@ Ext.namespace('App'); * Ext.direct.Provider exposing methods for a web service. * This constants is defined by the server. */ -App.cfgSvcMethods = null; /** * @cfg {String} App.dburl * Define the url of the database router/controller * This constants is defined by the server. */ -App.dburl = null; /** * @cfg {Boolean} App.debug @@ -29,14 +27,12 @@ App.dburl = null; * This constants is defined by the server. * */ -App.debug = null; /** * @cfg {String} App.name * Name of the web application. * This constants is defined by the server. */ -App.name = null; /** * Function to handle HTTP exception appearing in Form transation. diff --git a/views/applayout.html b/views/applayout.html index 60e6e975..997af3bf 100644 --- a/views/applayout.html +++ b/views/applayout.html @@ -19,10 +19,6 @@ {{for el in jlibs:}} <script type="text/javascript" src="{{=el}}"></script>{{pass}} - <!-- application librairies --> - {{for el in alibs:}} - <script type="text/javascript" src="{{=el}}"></script>{{pass}} - <!-- Namespace, global variables and remote methods for the application --> <script type="text/javascript"> Ext.namespace('App'); @@ -37,6 +33,10 @@ } }; </script> + + <!-- application librairies --> + {{for el in alibs:}} + <script type="text/javascript" src="{{=el}}"></script>{{pass}} <div id='appmain'></div> </body> -- GitLab