Mercurial > kallithea
changeset 5567:b428b05e5cea stable
files: fix Selection Link for multi-line selections
It broke in dacdea9fda2a when wrong casing in the translation lookup caused an
undefined value which didn't show up in the UI and thus made the link unusable.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sat, 07 Nov 2015 13:16:57 +0100 |
parents | f569f44a8a89 |
children | 737c3704b44a |
files | kallithea/public/js/base.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/public/js/base.js Sat Oct 24 16:19:20 2015 +0100 +++ b/kallithea/public/js/base.js Sat Nov 07 13:16:57 2015 +0100 @@ -976,7 +976,7 @@ $('body').prepend($hl_div); } - $hl_div.append($('<a>').html(_TM['Selection link']).prop('href', location.href.substring(0, location.href.indexOf('#')) + '#L' + ranges[0] + '-'+ranges[1])); + $hl_div.append($('<a>').html(_TM['Selection Link']).prop('href', location.href.substring(0, location.href.indexOf('#')) + '#L' + ranges[0] + '-'+ranges[1])); var xy = $(till).offset(); $hl_div.css('top', (xy.top + yoffset) + 'px').css('left', xy.left + 'px'); $hl_div.show();