diff --git a/li.strolch.planningwebapp/src/main/webapp/WEB-INF/config/StrolchConfiguration.xml b/li.strolch.planningwebapp/src/main/webapp/WEB-INF/config/StrolchConfiguration.xml
index b5cd01de8..5957810da 100644
--- a/li.strolch.planningwebapp/src/main/webapp/WEB-INF/config/StrolchConfiguration.xml
+++ b/li.strolch.planningwebapp/src/main/webapp/WEB-INF/config/StrolchConfiguration.xml
@@ -59,7 +59,7 @@
SessionHandler
true
- http://localhost:8180
+ http://localhost:8080
diff --git a/li.strolch.planningwebapp/src/main/webapp/js/constants.js b/li.strolch.planningwebapp/src/main/webapp/js/constants.js
index 549b5ca9b..c8f9993ea 100644
--- a/li.strolch.planningwebapp/src/main/webapp/js/constants.js
+++ b/li.strolch.planningwebapp/src/main/webapp/js/constants.js
@@ -13,7 +13,7 @@ strolch.const = {
url_base: 'planningwebapp',
urls: {
auth: 'rest/strolch/authentication',
- version: 'rest/version',
+ version: 'rest/strolch/version'
},
auth_token: 'auth_token',
diff --git a/li.strolch.planningwebapp/src/main/webapp/js/functions.js b/li.strolch.planningwebapp/src/main/webapp/js/functions.js
index 21fe91d29..d10f2ccd5 100644
--- a/li.strolch.planningwebapp/src/main/webapp/js/functions.js
+++ b/li.strolch.planningwebapp/src/main/webapp/js/functions.js
@@ -67,48 +67,48 @@ strolch.fn.setLocale = function (locale) {
localStorage['language_locale'] = locale;
};
-strolch.fn.const.version = null;
+strolch.const.version = null;
strolch.fn.version = function () {
- if (strolch.fn.const.version == null) {
- strolch.fn.const.version = "unknown";
+ if (strolch.const.version == null) {
+ strolch.const.version = "unknown";
$.ajax({
async: false,
- url: localStorage['url_version']
+ url: strolch.fn.url(strolch.const.urls.version)
}
).done(function (data) {
- if (data != null) {
- var ver = data['artifactVersion'];
- if (data['scmRevision'] == '${buildNumber}') {
- strolch.fn.const.version = ver;
- } else {
- ver = ver ? ver.substr(0, 9) : '?';
- var rev = data['scmRevision'];
- var rev = rev ? rev.substr(0, 7) : '?';
- strolch.fn.const.version = ver + " - " + rev;
- }
+ if (data != null) {
+ var ver = data['artifactVersion'];
+ if (data['scmRevision'] == '${buildNumber}') {
+ strolch.const.version = ver;
+ } else {
+ ver = ver ? ver.substr(0, 9) : '?';
+ var rev = data['scmRevision'];
+ var rev = rev ? rev.substr(0, 7) : '?';
+ strolch.const.version = ver + " - " + rev;
}
- });
+ }
+ });
}
- return strolch.fn.const.version;
+ return strolch.const.version;
};
-strolch.fn.const.revision = null;
+strolch.const.revision = null;
strolch.fn.revision = function () {
- if (strolch.fn.const.revision == null) {
- strolch.fn.const.revision = Math.floor(Math.random() * 10000000);
+ if (strolch.const.revision == null) {
+ strolch.const.revision = Math.floor(Math.random() * 10000000);
$.ajax({
async: false,
- url: strolch.fn.url(subPath)
+ url: strolch.fn.url(strolch.const.urls.version)
}
).done(function (data) {
- if (data != null && data['scmRevision'] != '${buildNumber}') {
- uoms.fn.const.revision = data['scmRevision'];
- }
- });
+ if (data != null && data['scmRevision'] != '${buildNumber}') {
+ strolch.const.revision = data['scmRevision'];
+ }
+ });
}
- return uoms.fn.const.revision;
+ return strolch.const.revision;
};
@@ -116,7 +116,7 @@ strolch.fn.revision = function () {
* Session management
*/
strolch.fn.showReAuthForm = function () {
- $('#reauthFormModal').on('shown.bs.modal', function () {
+ $('#reauthFormModal').on('shown.bs.modal', function () {
$('#auth-password').focus();
});
$('#reauthFormModal').modal('show');
diff --git a/li.strolch.planningwebapp/src/main/webapp/js/index.js b/li.strolch.planningwebapp/src/main/webapp/js/index.js
index f2969f2eb..7126094a3 100644
--- a/li.strolch.planningwebapp/src/main/webapp/js/index.js
+++ b/li.strolch.planningwebapp/src/main/webapp/js/index.js
@@ -53,4 +53,9 @@ strolch.index.registerHandlers = function () {
strolch.index.start = function () {
+ var components = ['model'];
+ $.forEach(components, function (index) {
+ alert(index);
+ })
+
};
\ No newline at end of file
diff --git a/li.strolch.planningwebapp/src/main/webapp/js/parts/model.js b/li.strolch.planningwebapp/src/main/webapp/js/parts/model.js
index 0b3dc67a7..a09a1ed77 100644
--- a/li.strolch.planningwebapp/src/main/webapp/js/parts/model.js
+++ b/li.strolch.planningwebapp/src/main/webapp/js/parts/model.js
@@ -15,15 +15,15 @@ jQuery(document).ready(function ($) {
});
strolch.parts.model.init = function (domParent) {
-
-
- strolch.parts.model.registerHandlers();
+ $("#page-content").load("parts/model.html");
+
+ strolch.parts.model.registerHandlers();
};
strolch.parts.model.registerHandlers = function () {
-
+
};
strolch.parts.model.start = function () {
diff --git a/li.strolch.planningwebapp/src/main/webapp/parts/model.html b/li.strolch.planningwebapp/src/main/webapp/parts/model.html
index 634d23d90..9916020fb 100644
--- a/li.strolch.planningwebapp/src/main/webapp/parts/model.html
+++ b/li.strolch.planningwebapp/src/main/webapp/parts/model.html
@@ -1,28 +1,20 @@
-
+
+
-
+
+
+
-
-
+
Resources
+
-
-
-
+
The resources for the current user's realm
-
Resources
-
-
The resources for the current user's realm
-
-
-
-
-
Orders
-
-
-
-
-
\ No newline at end of file
+
+ Orders
+
\ No newline at end of file