-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
When defined a allText option, then select the options, it would be nice to add the allText before.
Proposal to change the updateButtonContents function.
Change this:
if (selected.length == 0) {
this.$button.text( this.settings['noneText'] );
} else if ( (selected.length === options.length) && this.settings['allText']) {
this.$button.text( this.settings['allText'] );
} else {
this.$button.text( selected.join(', ') );
}
To this:
if (selected.length == 0) {
this.$button.text( this.settings['noneText'] );
} else if ( (selected.length === options.length) && this.settings['allText']) {
this.$button.text( this.settings['allText'] );
} else if (this.settings['noneText']){
this.$button.text( this.settings['noneText'] + ': ' + selected.join(', ') );
} else {
this.$button.text( selected.join(', ') );
}
Metadata
Metadata
Assignees
Labels
No labels