Skip to content

Commit 72b567a

Browse files
SilverDavmmoqui
authored andcommitted
bug #14673 : change displaying order and delete a line was impossible.
1 parent adcb9b2 commit 72b567a

File tree

1 file changed

+2
-3
lines changed
  • delegatednews/delegatednews-war/src/main/webapp/delegatednews/jsp

1 file changed

+2
-3
lines changed

delegatednews/delegatednews-war/src/main/webapp/delegatednews/jsp/listNews.jsp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
<c:set var="listNews" value="${requestScope.ListNews}"/>
4040
<c:set var="isAdmin" value="${sessionController.admin}" />
4141
<c:set var="componentId" value="${requestScope.browseContext[3]}"/>
42-
<c:set var="context" value="${requestScope.context}"/>
4342

4443
<view:sp-page angularJsAppName="silverpeas.delegatedNews">
4544
<view:sp-head-part withCheckFormScript="true">
@@ -165,7 +164,7 @@
165164
});
166165
167166
function sortDelegatedNews(updatedDelegatedNewsJSON){
168-
let url = "${context}/services/delegatednews/${componentId}";
167+
let url = webContext + "/services/delegatednews/${componentId}";
169168
let ajaxRequest = window.sp.ajaxRequest(url).byPutMethod();
170169
ajaxRequest.sendAndPromiseJsonResponse(updatedDelegatedNewsJSON).then(function(data) {
171170
listDelegatedNewsJSON = data;
@@ -214,7 +213,7 @@
214213
}
215214
216215
function deleteDelegagedNews(updatedDelegatedNews) {
217-
let url = "${context}/services/delegatednews/${componentId}";
216+
let url = webContext + "/services/delegatednews/${componentId}";
218217
let ajaxRequest = window.sp.ajaxRequest(url).byPutMethod();
219218
ajaxRequest.sendAndPromiseJsonResponse(updatedDelegatedNews).then(function(data) {
220219
let listPubIdToDelete = getAllPubIdToDelete(data);

0 commit comments

Comments
 (0)