From 4910b0666edeeebb18ac9682cb898dba8f22962a Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Thu, 15 Aug 2013 02:57:11 -0400
Subject: [PATCH] Distinguish mobile/tablet/touch devices

---
 skins/larry/ui.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index e5733bd..ae14d81 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -52,6 +52,10 @@
     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");
+    }
   }
 
 

--
Gitblit v1.9.1