From 79435726ed870d8395154e539ba2d9eb7789e0de Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Fri, 14 Nov 2014 13:46:37 +0000
Subject: [PATCH] #2021 fix - Fixed some JS code to work with a WAR deployment

---
 securis/src/main/webapp/js/commons.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/securis/src/main/webapp/js/commons.js b/securis/src/main/webapp/js/commons.js
index 692793b..d99c93d 100644
--- a/securis/src/main/webapp/js/commons.js
+++ b/securis/src/main/webapp/js/commons.js
@@ -25,7 +25,7 @@
 	app.factory('Catalogs', function($http, $resource) {
 		var CatalogsService = {
 			resources : {
-				application : $resource('/application/:appId', {
+				application : $resource('application/:appId', {
 					appId : '@id'
 				}, {
 					update : {
@@ -39,14 +39,14 @@
 						}
 					}
 				}),
-				user : $resource('/user/:userId', {
+				user : $resource('user/:userId', {
 					userId : '@id'
 				}, {
 					update : {
 						method : "PUT"
 					}
 				}),
-				licensetype : $resource('/licenseType/:licenseTypeId', {
+				licensetype : $resource('licenseType/:licenseTypeId', {
 					licenseTypeId : '@id'
 				}, {
 					update : {
@@ -56,7 +56,7 @@
 
 			},
 			list : function(initFn) {
-				$http.get('/js/catalogs.json').success(function(data) {
+				$http.get('js/catalogs.json').success(function(data) {
 					console.log(data);
 					CatalogsService.data = data;
 					initFn();

--
Gitblit v1.3.2