Selectmenu: simplify tabindex attribute setting on button create

This commit is contained in:
Felix Nagel 2013-04-29 22:04:56 +02:00
parent 68c7485ed9
commit b84cd7e686

View File

@ -74,7 +74,7 @@ $.widget( "ui.selectmenu", {
// Create button // Create button
this.button = $( "<span>", { this.button = $( "<span>", {
"class": "ui-selectmenu-button ui-widget ui-state-default ui-corner-all", "class": "ui-selectmenu-button ui-widget ui-state-default ui-corner-all",
tabindex: ( tabindex ? tabindex : this.options.disabled ? -1 : 0 ), tabindex: tabindex || this.options.disabled ? -1 : 0,
id: this.ids.button, id: this.ids.button,
width: this.element.outerWidth(), width: this.element.outerWidth(),
role: "combobox", role: "combobox",