Skip to content

Commit

Permalink
issue 21: hide check/uncheck all on single select
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hynds committed Sep 30, 2010
1 parent d81833b commit 43fc35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $.widget("ech.multiselect", {
// header
html.push('<div class="ui-widget-header ui-corner-all ui-multiselect-header ui-helper-clearfix">');
html.push('<ul class="ui-helper-reset">');
if(o.header === true){
if(o.header === true && o.multiple ){
html.push('<li><a class="ui-multiselect-all" href="#"><span class="ui-icon ui-icon-check"></span><span>' + o.checkAllText + '</span></a></li>');
html.push('<li><a class="ui-multiselect-none" href="#"><span class="ui-icon ui-icon-closethick"></span><span>' + o.uncheckAllText + '</span></a></li>');
} else if(typeof o.header === "string"){
Expand Down

0 comments on commit 43fc35d

Please sign in to comment.