Removed trailing slash from category and tools tree urls.

This maybe helps with the insecure loading problem on Heroku.
This commit is contained in:
Jan Böhmer 2019-04-05 23:15:40 +02:00
parent 1c2b155adf
commit 90b33159a5

View file

@ -172,7 +172,7 @@ class AjaxUI {
text = text + " \n<span class='caret'></span>"; //Add caret or it will be removed, when written into title text = text + " \n<span class='caret'></span>"; //Add caret or it will be removed, when written into title
switch(datasource) { switch(datasource) {
case "categories": case "categories":
ajaxUI.initTree("#" + target_id, 'tree/categories/'); ajaxUI.initTree("#" + target_id, 'tree/categories');
break; break;
case "locations": case "locations":
ajaxUI.initTree("#" + target_id, 'tree/locations'); ajaxUI.initTree("#" + target_id, 'tree/locations');
@ -187,7 +187,7 @@ class AjaxUI {
ajaxUI.initTree("#" + target_id, 'tree/suppliers'); ajaxUI.initTree("#" + target_id, 'tree/suppliers');
break; break;
case "tools": case "tools":
ajaxUI.initTree("#" + target_id, 'tree/tools/'); ajaxUI.initTree("#" + target_id, 'tree/tools');
break; break;
case "devices": case "devices":
ajaxUI.initTree("#" + target_id, 'tree/devices'); ajaxUI.initTree("#" + target_id, 'tree/devices');