Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from pjparra/master
Browse files Browse the repository at this point in the history
Added a title attribute to li elements: when labels are trimmed, we can still read the full original label
  • Loading branch information
bu committed Jul 23, 2013
2 parents 73eefea + 4402b95 commit ffce509
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion css/hcolumns.css
Expand Up @@ -80,7 +80,7 @@
}

.column ul li.search input {
width: 240px;
width: 100%;
margin: 0;
}

Expand Down
4 changes: 2 additions & 2 deletions js/jquery.hcolumns.js 100755 → 100644
Expand Up @@ -121,9 +121,9 @@
self._addColumnSearch(ListElm);
}

for(var i = 0; i < list.length; i++){
for (var i = 0; i < list.length; i++) {
// we create the element
var EntryElm = $(document.createElement('li')).data("node-id", list[i].id).data("node-type", list[i].type).data("node-data", list[i]);
var EntryElm = $(document.createElement('li')).data("node-id", list[i].id).data("node-type", list[i].type).data("node-data", list[i]).attr('title', list[i].label);
var EntryIconElm = $(document.createElement('i')).addClass( self.settings.indicators[list[i].type] );

// we build the node entry
Expand Down
12 changes: 6 additions & 6 deletions js/jquery.hcolumns.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ffce509

Please sign in to comment.