diff --git a/WebContent/WEB-INF/jsp/pointHierarchySLTS.jsp b/WebContent/WEB-INF/jsp/pointHierarchySLTS.jsp index 5070db6808..626b293769 100644 --- a/WebContent/WEB-INF/jsp/pointHierarchySLTS.jsp +++ b/WebContent/WEB-INF/jsp/pointHierarchySLTS.jsp @@ -601,7 +601,7 @@ var messages = { $.ajax({ type: "GET", dataType: "json", - url:myLocation+"/pointHierarchy/paths/"+key+"/"+folder, + url:myLocation+"pointHierarchy/paths/"+key+"/"+folder, success: function(msg){ var path="/"; if (msg.length>0) { @@ -753,7 +753,7 @@ var messages = { $.ajax({ type: "POST", dataType: "json", - url:myLocation+'/pointHierarchy/move/'+toMove.key+'/'+toMove.oldParentId+'/'+toMove.newParentId+'/'+nodeDragAndDrop.isFolder(), + url:myLocation+'pointHierarchy/move/'+toMove.key+'/'+toMove.oldParentId+'/'+toMove.newParentId+'/'+nodeDragAndDrop.isFolder(), success: function(msg){ $button.hide(); $button.stopSpin(); @@ -786,7 +786,7 @@ var messages = { glyph: glyph_opts, selectMode: 2, source: { - url: myLocation+"/pointHierarchy/0", + url: myLocation+"pointHierarchy/0", debugDelay: 0, cache: false}, toggleEffect: { effect: "drop", options: {direction: "left"}, duration: 100 }, @@ -802,7 +802,7 @@ var messages = { }, lazyLoad: function(event, data) { data.result = { - url: myLocation+"/pointHierarchy/"+data.node.key, + url: myLocation+"pointHierarchy/"+data.node.key, cache: false, debugDelay: 0 }; @@ -832,7 +832,7 @@ var messages = { $.ajax({ type: "POST", dataType: "json", - url:myLocation+"/pointHierarchy/new/0/"+dialog.getModalBody().find('input').val(), + url:myLocation+"pointHierarchy/new/0/"+dialog.getModalBody().find('input').val(), success: function(msg){ var titleNewNode = dialog.getModalBody().find('input').val(); dialog.getModalBody().html('

'+messages.folder+':

'); @@ -899,7 +899,7 @@ var messages = { $.ajax({ type: "POST", dataType: "json", - url:myLocation+"/pointHierarchy/del/"+getParentId(nodeActivate)+"/"+nodeActivate.key+"/"+nodeActivate.isFolder(), + url:myLocation+"pointHierarchy/del/"+getParentId(nodeActivate)+"/"+nodeActivate.key+"/"+nodeActivate.isFolder(), success: function(msg){ dialog.getModalBody().html('

'+messages.folderRemoved+':

'); $button.hide(); @@ -949,7 +949,7 @@ var messages = { $.ajax({ type: "POST", dataType: "json", - url:myLocation+"/pointHierarchy/del/"+getParentId(nodeActivate)+"/"+nodeActivate.key+"/"+nodeActivate.isFolder(), + url:myLocation+"pointHierarchy/del/"+getParentId(nodeActivate)+"/"+nodeActivate.key+"/"+nodeActivate.isFolder(), success: function(msg){ dialog.getModalBody().html('

'+messages.movedElement+':

'); $button.hide(); @@ -1032,7 +1032,7 @@ var messages = { $.ajax({ type: "POST", dataType: "json", - url:myLocation+"/pointHierarchy/edit/"+getParentId(nodeActivate)+"/"+nodeActivate.key+"/"+newTitle, + url:myLocation+"pointHierarchy/edit/"+getParentId(nodeActivate)+"/"+nodeActivate.key+"/"+newTitle, success: function(msg){ var titleNewNode = dialog.getModalBody().find('input').val(); dialog.getModalBody().html('

'+messages.folderChange+':

'); @@ -1140,7 +1140,7 @@ var messages = { $.ajax({ type: "POST", dataType: "json", - url:myLocation+"/viewutil/"+locale, + url:myLocation+"viewutil/"+locale, success: function(msg){ location.reload(); }, @@ -1227,7 +1227,7 @@ var messages = { $.ajax({ type: "GET", dataType: "json", - url:myLocation+"/pointHierarchy/find/"+queryGlobal+"/"+page, + url:myLocation+"pointHierarchy/find/"+queryGlobal+"/"+page, success: function(msg){ if(msg !== undefined ) { diff --git a/WebContent/WEB-INF/jsp/scripting.jsp b/WebContent/WEB-INF/jsp/scripting.jsp index 353587d83d..77d8871672 100644 --- a/WebContent/WEB-INF/jsp/scripting.jsp +++ b/WebContent/WEB-INF/jsp/scripting.jsp @@ -38,7 +38,7 @@ if (!myLocation) { myLocation = location.protocol + "//" + location.host + "/" + appScada + "/"; } - var urlGetDataPoints = "/api/datapoint/getAll"; + var urlGetDataPoints = "api/datapoint/getAll"; function executeScript(){ var xid = jQuery("#xid"); // saveScript() nie zdarzy zapisac !!! diff --git a/WebContent/WEB-INF/spring-security.xml b/WebContent/WEB-INF/spring-security.xml index 557a6c77b0..732fc40e23 100644 --- a/WebContent/WEB-INF/spring-security.xml +++ b/WebContent/WEB-INF/spring-security.xml @@ -24,6 +24,7 @@ + @@ -46,6 +47,7 @@ + @@ -68,6 +70,7 @@ + @@ -90,6 +93,7 @@ + @@ -112,6 +116,7 @@ + @@ -440,13 +445,14 @@ authentication-failure-url="/login.htm?error" login-page="/login.htm" password-parameter="password" username-parameter="username" login-processing-url="/login.htm"/> - + - + + ERROR + + + ERROR + @@ -171,6 +175,7 @@ + @@ -288,6 +293,10 @@ + + + +