Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions js/ui.multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,13 @@ $.widget("ui.multiselect", {
},
_getOptionNode: function(option) {
option = $(option);
var node = $('<li class="ui-state-default ui-element" title="'+option.text()+'"><span class="ui-icon"/>'+option.text()+'<a href="#" class="action"><span class="ui-corner-all ui-icon"/></a></li>').hide();
node.data('optionLink', option);
var node = $('<li class="ui-state-default ui-element"/>')
.attr('title', option.text())
.text(option.text())
.prepend($("<span/>").addClass("ui-icon"))
.append($('<a href="#" class="action"/>').append($('<span class="ui-corner-all ui-icon"/>')))
.hide();
node.data('optionLink', option);
return node;
},
// clones an item with associated data
Expand Down