Skip to content
Browse files

fixed themeswitcher a little bit

  • Loading branch information...
1 parent 9e99c2c commit 4db073400878ac220ff9b6f353172ee5734f99dd scottjehl committed Nov 11, 2010
Showing with 1 addition and 13 deletions.
  1. +1 −13 experiments/themeswitcher/jquery.mobile.themeswitcher.js
View
14 experiments/themeswitcher/jquery.mobile.themeswitcher.js
@@ -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);
});
@@ -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();

0 comments on commit 4db0734

Please sign in to comment.
Something went wrong with that request. Please try again.