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:59:14 +0200
commitd1c40bbd877dbc99b695ed8f97d0cc2d8dd6adfc (patch)
tree736479419905cea8222cb91a8f1d540214f78452 /skins/larry/ui.js
parent680d0ec07232a9c7cad4be7724eac1ac3082f397 (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 93724dd4c..19f8a516a 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -49,6 +49,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");
+ }
}