summaryrefslogtreecommitdiff
path: root/skins/larry/ui.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-08-15 08:57:11 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-08-15 08:57:11 +0200
commit4910b0666edeeebb18ac9682cb898dba8f22962a (patch)
tree1c3d88f7ab70db5a0e2f81d7873a8473f9d686ea /skins/larry/ui.js
parent6746148d1b0fa965836f819671fa49b04af2d383 (diff)
Distinguish mobile/tablet/touch devices
Diffstat (limited to 'skins/larry/ui.js')
-rw-r--r--skins/larry/ui.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index e5733bd23..ae14d81b2 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -52,6 +52,10 @@ function rcube_mail_ui()
if (parseInt(minmode) || (minmode === null && $(window).height() < 850)) {
$(document.body).addClass('minimal');
}
+
+ if (bw.tablet) {
+ $('#viewport').attr('content', "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0");
+ }
}