diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2013-01-13 20:03:15 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2013-01-13 20:03:15 +0100 |
commit | b853a854d15dfa2c19003a21d7e5e88f4e1e4cd2 (patch) | |
tree | 74c40edfffaf55e63f6f18eefa13ff3670d5a5c0 | |
parent | f95fdef4ba9c117bf161da5cfcaf12fe72ce5c8c (diff) |
fixed issue #719 Journal revision ID tooltip AJAX query path is incorrect when running in a subdir
--HG--
branch : beta
-rw-r--r-- | rhodecode/public/js/rhodecode.js | 2 | ||||
-rw-r--r-- | rhodecode/templates/base/root.html | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/rhodecode/public/js/rhodecode.js b/rhodecode/public/js/rhodecode.js index 5d7bfe10..f52a280c 100644 --- a/rhodecode/public/js/rhodecode.js +++ b/rhodecode/public/js/rhodecode.js @@ -334,7 +334,7 @@ var show_changeset_tooltip = function(){ YUD.setAttribute(target, 'title',_TM['loading...']); YAHOO.yuitip.main.set_listeners(target); YAHOO.yuitip.main.show_yuitip(e, target); - ajaxGET('/changeset_info/{0}/{1}'.format(repo_name,rid), success) + ajaxGET(LAZY_CS_URL.replace('__NAME__',repo_name).replace('__REV__', rid), success) } }); }; diff --git a/rhodecode/templates/base/root.html b/rhodecode/templates/base/root.html index 83ad7fe1..0753de49 100644 --- a/rhodecode/templates/base/root.html +++ b/rhodecode/templates/base/root.html @@ -54,6 +54,7 @@ }; var _TM = TRANSLATION_MAP; var TOGGLE_FOLLOW_URL = "${h.url('toggle_following')}"; + var LAZY_CS_URL = "${h.url('changeset_info', repo_name='__NAME__', revision='__REV__')}" </script> <script type="text/javascript" src="${h.url('/js/yui.2.9.js', ver=c.rhodecode_version)}"></script> <!--[if lt IE 9]> |