mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-29 20:20:27 +00:00
made sure ui-page class is only added if there's no closest('.ui-page') present on it during mobilize call
This commit is contained in:
parent
8c7205c3ad
commit
14436257f6
1 changed files with 3 additions and 1 deletions
|
|
@ -227,7 +227,9 @@
|
|||
//to-do: make sure this only runs one time on a page (or maybe per component)
|
||||
return $el.not('[data-mobilized]').each(function(){
|
||||
//add ui-page class
|
||||
$el.addClass('ui-page');
|
||||
if( !$el.closest('.ui-page').length ) {
|
||||
$el.addClass('ui-page');
|
||||
}
|
||||
//dialog
|
||||
$el.filter('[data-role="dialog"]').dialog();
|
||||
//checkboxes, radios
|
||||
|
|
|
|||
Loading…
Reference in a new issue