Permalink
Browse files

Merge pull request #82 from mastersenthilkumar/master

On mouse over favorites headers, their full value is shown
  • Loading branch information...
chao committed Jan 5, 2013
2 parents 9ddc9f5 + 06206ea commit 2c4e42569919c9114f2760bc8cc70e8706047726
Showing with 3 additions and 2 deletions.
  1. +3 −2 content/js/restclient.main.js
@@ -847,10 +847,11 @@ restclient.main = {
favoriteHeaders = JSON.parse(favoriteHeaders);
for(var i=0, header; header = favoriteHeaders[i]; i++) {
var text = header[0] + ": " + header[1];
+ var croppedText = text;
if (text.length > restclient.main.headerMenuMaxLength)
- text = text.substr(0, restclient.main.headerMenuMaxLength -3) + "...";
- var a = $('<a class="favorite" href="#"></a>').text(text)
+ croppedText = text.substr(0, restclient.main.headerMenuMaxLength -3) + "...";
+ var a = $('<a class="favorite" href="#" title='+text+'></a>').text(croppedText)
.attr('header-name', header[0])
.attr('header-value', header[1]);
$('.custom-header').after($('<li></li>').append(a));

0 comments on commit 2c4e425

Please sign in to comment.