Commit d9bd4cdf authored by David Stutz's avatar David Stutz

Merge pull request #432 from justinmealey/master

Created an inheritClasses option (default: false) that pulls classes (documentation still to be done).
parents be0841ed f597dc0e
......@@ -250,6 +250,7 @@
// If maximum height is exceeded a scrollbar will be displayed.
maxHeight: false,
checkboxName: false,
inheritClasses: false,
includeSelectAllOption: false,
includeSelectAllIfMoreThan: 0,
selectAllText: ' Select all',
......@@ -297,7 +298,9 @@
*/
buildButton: function() {
this.$button = $(this.options.templates.button).addClass(this.options.buttonClass);
if (this.$select.attr('class') && this.options.inheritClasses) {
this.$button.addClass(this.$select.attr('class'));
}
// Adopt active state.
if (this.$select.prop('disabled')) {
this.disable();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment