# HG changeset patch # User Mads Kiilerich # Date 1446898617 -3600 # Node ID b428b05e5ceac9c50d77dea14d5ca4127382e662 # Parent f569f44a8a890069510ee0b141b95ecf730bc9fc 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. diff -r f569f44a8a89 -r b428b05e5cea kallithea/public/js/base.js --- 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($('').html(_TM['Selection link']).prop('href', location.href.substring(0, location.href.indexOf('#')) + '#L' + ranges[0] + '-'+ranges[1])); + $hl_div.append($('').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();