Skip to content

Commit

Permalink
If /admin dir is changed , drag and Drop in manage sections stops wor…
Browse files Browse the repository at this point in the history
  • Loading branch information
NorHei committed Mar 23, 2016
1 parent 4a8bd98 commit 4e0ba92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wbce/modules/jsadmin/js/dragdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ JsAdmin.init_drag_drop = function() {
}
}

} else if(document.URL.indexOf("/admin/pages/sections.php") > 0) {
} else if(document.URL.indexOf(JsAdmin.ADMIN_URL + "/pages/sections.php") > -1) {
page_type = 'sections';
} else if(document.URL.indexOf("/admin/pages/modify.php") > 0) {
} else if(document.URL.indexOf(JsAdmin.ADMIN_URL + "/pages/modify.php") > -1) {
page_type = 'modules';
is_tree = true;
// Stash all UL ids
Expand Down

0 comments on commit 4e0ba92

Please sign in to comment.