summaryrefslogtreecommitdiff
path: root/lib/tpl
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-02-17 21:57:53 +0000
committerChristopher Smith <chris@jalakai.co.uk>2013-02-17 21:57:53 +0000
commit1947d1b49884a38ff63ed13d434b64dc4bb777a6 (patch)
tree427bd1b7b3da09ba017412aaae4cf4f83d7cb50e /lib/tpl
parent344be1a1d9393191529b775e6d3429301e835823 (diff)
downloadrpg-1947d1b49884a38ff63ed13d434b64dc4bb777a6.tar.gz
rpg-1947d1b49884a38ff63ed13d434b64dc4bb777a6.tar.bz2
force screen_mode to string type (IE returns a number which is always triggering the default option in the following switch/case block
Diffstat (limited to 'lib/tpl')
-rw-r--r--lib/tpl/dokuwiki/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tpl/dokuwiki/script.js b/lib/tpl/dokuwiki/script.js
index 375500f78..4eb92a417 100644
--- a/lib/tpl/dokuwiki/script.js
+++ b/lib/tpl/dokuwiki/script.js
@@ -12,7 +12,7 @@ var device_classes = 'desktop mobile tablet phone';
function tpl_dokuwiki_mobile(){
// the z-index in mobile.css is (mis-)used purely for detecting the screen mode here
- var screen_mode = jQuery('#screen__mode').css('z-index');
+ var screen_mode = jQuery('#screen__mode').css('z-index') + '';
// determine our device pattern
// TODO: consider moving into dokuwiki core