Mercurial > kallithea
changeset 3160:5d7f6b22d6b4 beta
fixed issue #719 Journal revision ID tooltip AJAX query path is incorrect when running in a subdir
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 13 Jan 2013 20:03:15 +0100 |
parents | 4910b2607a29 |
children | 3563c47e52fd |
files | rhodecode/public/js/rhodecode.js rhodecode/templates/base/root.html |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/js/rhodecode.js Thu Jan 10 23:09:17 2013 +0100 +++ b/rhodecode/public/js/rhodecode.js Sun Jan 13 20:03:15 2013 +0100 @@ -334,7 +334,7 @@ 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) } }); };
--- a/rhodecode/templates/base/root.html Thu Jan 10 23:09:17 2013 +0100 +++ b/rhodecode/templates/base/root.html Sun Jan 13 20:03:15 2013 +0100 @@ -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]>