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

Commit

Permalink
Added a title attribute to li elements: when labels are trimmed, we c…
Browse files Browse the repository at this point in the history
…an still read the full original label
  • Loading branch information
Pierre-Jean Parra committed Jul 16, 2013
1 parent c7bd593 commit f7615de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
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 f7615de

Please sign in to comment.