Skip to content

Commit

Permalink
fixed themeswitcher a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed Nov 12, 2010
1 parent 9e99c2c commit 4db0734
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions experiments/themeswitcher/jquery.mobile.themeswitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
$('<li><a href=\'#\'>' + themes[ i ].charAt(0).toUpperCase() + themes[ i ].substr(1) + '</a></li>')
.click(function(){
addTheme( themes[i] );
done();
return false;
})
.appendTo(menu);
});
Expand All @@ -29,17 +27,7 @@
$('head').append( '<link rel=\'stylesheet\' href=\''+ themesDir + theme +'/\' />' );
}

//finished with this
function done(){
$.mobile.changePage([menuPage, currentPage], 'pop', true);
menuPage.bind('pagehide',function(){
menuPage.remove();
});
return false;
}

//destroy
menuPage.find('.ui-btn-left').click(done);


//create page, listview
menuPage.page();
Expand Down

0 comments on commit 4db0734

Please sign in to comment.