Skip to content

Commit f4f4372

Browse files
committed
Button now inherits ID from select Fixes #641
Appends "_ms" to the inherited ID. Updated unit tests with new attribute and updated minified code.
1 parent 9d399bd commit f4f4372

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

src/jquery.multiselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
var button = (this.button = $('<button type="button"><span class="ui-icon ui-icon-triangle-1-s"></span></button>'))
6161
.addClass('ui-multiselect ui-widget ui-state-default ui-corner-all')
6262
.addClass(o.classes)
63-
.attr({ 'title':el.attr('title'), 'tabIndex':el.attr('tabIndex') })
63+
.attr({ 'title':el.attr('title'), 'tabIndex':el.attr('tabIndex'), 'id': el.attr('id') + '_ms' })
6464
.prop('aria-haspopup', true)
6565
.insertAfter(el),
6666

0 commit comments

Comments
 (0)