fixed up the themeswitcher

This commit is contained in:
scottjehl 2011-06-17 19:25:35 -04:00
parent ffa35c0548
commit 06020201fc
2 changed files with 3 additions and 2 deletions

View file

@ -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();
});
}

View file

@ -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);