Skip to content

Commit

Permalink
fix javascripts for use mezzanine variable ADMIN_URL for support SITE…
Browse files Browse the repository at this point in the history
…_PREFIX and multilingual
  • Loading branch information
simodalla committed Aug 28, 2014
1 parent cddf0f7 commit cfd3637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openhelpdesk/static/openhelpdesk/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ if('__helpdeskStaticAppPath' in window) {
});
} else {
alert('A system error is occurs. Contact the system administrator.');
window.location.replace('/admin/');
window.location.replace(ADMIN_URL);
}
2 changes: 1 addition & 1 deletion openhelpdesk/static/openhelpdesk/js/openhelpdesk.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function helpdeskGetObjectTools($) {
var url = "/admin/openhelpdesk/ticket/object_tools/?view=" + location.pathname;
var url = ADMIN_URL + "openhelpdesk/ticket/object_tools/?view=" + location.pathname;
$.get(url, function (data) {
var objectToolsUl = $('ul.object-tools');
for (var key in data) {
Expand Down

0 comments on commit cfd3637

Please sign in to comment.