Skip to content

Commit 4db0734

Browse files
author
scottjehl
committed
fixed themeswitcher a little bit
1 parent 9e99c2c commit 4db0734

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

experiments/themeswitcher/jquery.mobile.themeswitcher.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
$('<li><a href=\'#\'>' + themes[ i ].charAt(0).toUpperCase() + themes[ i ].substr(1) + '</a></li>')
1919
.click(function(){
2020
addTheme( themes[i] );
21-
done();
22-
return false;
2321
})
2422
.appendTo(menu);
2523
});
@@ -29,17 +27,7 @@
2927
$('head').append( '<link rel=\'stylesheet\' href=\''+ themesDir + theme +'/\' />' );
3028
}
3129

32-
//finished with this
33-
function done(){
34-
$.mobile.changePage([menuPage, currentPage], 'pop', true);
35-
menuPage.bind('pagehide',function(){
36-
menuPage.remove();
37-
});
38-
return false;
39-
}
40-
41-
//destroy
42-
menuPage.find('.ui-btn-left').click(done);
30+
4331

4432
//create page, listview
4533
menuPage.page();

0 commit comments

Comments
 (0)