mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-25 06:23:43 +00:00
fix label class application bug
This commit is contained in:
parent
88edbc666f
commit
62e1631353
2 changed files with 4 additions and 2 deletions
|
|
@ -395,8 +395,8 @@
|
|||
var extensionAttributes = function(){
|
||||
var widget = this,
|
||||
select = this.select,
|
||||
selectID = this.select.attr( "id" ),
|
||||
label = $( "label[for='"+ selectID +"']" ).addClass( "ui-select" ),
|
||||
selectID = this.selectID,
|
||||
label = this.label,
|
||||
thisPage = this.select.closest( ".ui-page" ),
|
||||
screen = $( "<div>", {"class": "ui-selectmenu-screen ui-screen-hidden"} ).appendTo( thisPage ),
|
||||
selectOptions = this.select.find("option"),
|
||||
|
|
|
|||
|
|
@ -79,6 +79,8 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
|
|||
// setup items that are generally necessary for select menu extension
|
||||
_preExtension: function(){
|
||||
this.select = this.element.wrap( "<div class='ui-select'>" );
|
||||
this.selectID = this.select.attr( "id" );
|
||||
this.label = $( "label[for='"+ this.selectID +"']" ).addClass( "ui-select" );
|
||||
this.isMultiple = this.select[ 0 ].multiple;
|
||||
this.options.theme = this._theme();
|
||||
this.selectOptions = this.select.find( "option" );
|
||||
|
|
|
|||
Loading…
Reference in a new issue