summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/jqm-themehack.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/jqm-themehack.js b/js/jqm-themehack.js
new file mode 100644
index 0000000..23a504c
--- /dev/null
+++ b/js/jqm-themehack.js
@@ -0,0 +1,8 @@
+$(document).bind('mobileinit', function(){
+ var apptheme = localStorage.getItem('apptheme');
+ if(apptheme === null || apptheme.length === 0){
+ apptheme = 'a';
+ }
+
+ $.mobile.page.prototype.options.theme = apptheme;
+});