Skip to content

Commit ffdea10

Browse files
committed
Fixed #128, Fixed #192, Fixed #193, Fixed #194, Fixed #195, Fixed #196, Fixed #197, Fixed #198, Fixed #199, Fixed #200, Fixed #239, Fixed #240
1 parent d88da98 commit ffdea10

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/resources/templates/layout/page.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,17 @@
163163
var myUrl = '';
164164
var requestPath = '[(@{{url}(url=${#request.getRequestURI()})})]';
165165
var requestPathFirst = requestPath.split("/")[1];
166+
var requestPathSecond = requestPath.split("/")[2];
166167
var srcType = ev.dataTransfer.getData("task").split("_")[0];
167168
var sourceTaskId = ev.dataTransfer.getData("task").split("_")[1];
168169
var destinationTaskIdInfo = ev.target.id;
169170
var destinationTaskId = destinationTaskIdInfo.split("_")[1];
170171
if(srcType === 'task') {
171172
if(requestPathFirst === 'taskstate'){
172-
myUrl = '[(@{/taskstate/})]' + sourceTaskId + '/changeorderto/' + destinationTaskId;
173+
myUrl = '[(@{/taskstate/task/})]' + sourceTaskId + '/changeorderto/' + destinationTaskId;
173174
window.location.replace(myUrl);
174175
} else if(requestPathFirst === 'project'){
175-
myUrl = '[(@{/project/task/})]' + sourceTaskId + '/changeorderto/' + destinationTaskId;
176+
myUrl = '[(@{/project/})]' + requestPathSecond + "/task/"+ sourceTaskId + '/changeorderto/' + destinationTaskId;
176177
window.location.replace(myUrl);
177178
}
178179
}

0 commit comments

Comments
 (0)