Skip to content

Commit

Permalink
sorter
Browse files Browse the repository at this point in the history
  • Loading branch information
NKjoep committed Feb 28, 2014
1 parent e627d45 commit 7b2e85f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/tag.js.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ menuEl.before('<li><a href="'+basepath+'{{short-name}}-{{tlib-version}}/index-{{
},
sorter: function(items) {
$(this.$menu).width($(this.$element).outerWidth()+"px");
var r = items.sort(function(a, b){
var items = items.sort(function(a, b){
if(a.prefix.toLowerCase() > b.prefix.toLowerCase()) {
return a;
}
Expand All @@ -56,7 +56,7 @@ menuEl.before('<li><a href="'+basepath+'{{short-name}}-{{tlib-version}}/index-{{
}
return a;
});
return r;
return items;
},
highlighter: function(item) {
return '<span title="'+item.tlddescr+'" class="label label-default">'
Expand Down

0 comments on commit 7b2e85f

Please sign in to comment.