Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin_dbui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
w2pext
plugin_dbui
Commits
4bdc4cde
Commit
4bdc4cde
authored
15 years ago
by
Renaud Le Gac
Browse files
Options
Downloads
Patches
Plain Diff
Define all constants related to the application.
parent
2dfb36e4
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
static/appjs/appbase.js
+34
-2
34 additions, 2 deletions
static/appjs/appbase.js
views/applayout.html
+5
-4
5 additions, 4 deletions
views/applayout.html
with
39 additions
and
6 deletions
static/appjs/appbase.js
+
34
−
2
View file @
4bdc4cde
...
...
@@ -9,9 +9,41 @@
Ext
.
namespace
(
'
App
'
);
App
.
cfgurl
=
'
/
'
+
App
.
name
+
'
/configuration
'
;
App
.
dburl
=
'
/
'
+
App
.
name
+
'
/database
'
;
/**
* @cfg {Object} App.cfgSvcMethods
* 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
* Activate the debug mode on the server side.
* 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.
*
* @param {Object} form
* @param {Object} action
*/
App
.
httpFailure
=
function
(
form
,
action
){
if
(
action
.
response
)
{
if
(
action
.
response
.
status
!=
200
)
{
...
...
This diff is collapsed.
Click to expand it.
views/applayout.html
+
5
−
4
View file @
4bdc4cde
...
...
@@ -19,11 +19,16 @@
{{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
'
);
App
.
name
=
'
{{=request.application}}
'
;
App
.
debug
=
{{
=
str
(
appdebug
).
lower
()}};
App
.
dburl
=
'
/{{=request.application}}/database
'
;
App
.
cfgSvcMethods
=
{
"
url
"
:
'
/{{=request.application}}/configuration
'
,
"
type
"
:
"
remoting
"
,
...
...
@@ -33,10 +38,6 @@
};
</script>
<!-- application scripts -->
{{for el in alibs:}}
<script
type=
"text/javascript"
src=
"{{=el}}"
></script>
{{pass}}
<div
id=
'appmain'
></div>
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment