mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
fixed up the themeswitcher
This commit is contained in:
parent
ffa35c0548
commit
06020201fc
2 changed files with 3 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ $('div').live('pagecreate',function(event){
|
|||
})
|
||||
.appendTo( $(this).find('.ui-content') )
|
||||
.wrap('<div class="jqm-themeswitcher">')
|
||||
.click(function(){
|
||||
.bind("vclick", function(){
|
||||
$.themeswitcher();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,8 +17,9 @@
|
|||
//menu items
|
||||
$.each(themes, function( i ){
|
||||
$('<li><a href="#" data-'+ $.mobile.ns +'rel="back">' + themes[ i ].charAt(0).toUpperCase() + themes[ i ].substr(1) + '</a></li>')
|
||||
.click(function(){
|
||||
.bind("vclick", function(){
|
||||
addTheme( themes[i] );
|
||||
menuPage.dialog( "close" );
|
||||
return false;
|
||||
})
|
||||
.appendTo(menu);
|
||||
|
|
|
|||
Loading…
Reference in a new issue