aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-02-24 12:53:55 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-02-24 12:53:55 +0100
commit0d78d9c180fe4d08500d74c5c61e43c8b6862262 (patch)
tree0e1b863431640154e99d70ea876ed6cd9a0d7a9d /core/js/js.js
parenta40cedf507a432c0f2afc144fbc3c7dedb438852 (diff)
parent11ca01403408413cbbe48c8d78c41802998868b7 (diff)
downloadnextcloud-server-0d78d9c180fe4d08500d74c5c61e43c8b6862262.tar.gz
nextcloud-server-0d78d9c180fe4d08500d74c5c61e43c8b6862262.zip
Merge branch 'master' into McNetic-zipstreamer
Conflicts: 3rdparty
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 59d48806418..ec890be4541 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -989,6 +989,17 @@ OC.set=function(name, value) {
context[tail]=value;
};
+// fix device width on windows phone
+(function() {
+ if ("-ms-user-select" in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) {
+ var msViewportStyle = document.createElement("style");
+ msViewportStyle.appendChild(
+ document.createTextNode("@-ms-viewport{width:auto!important}")
+ );
+ document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
+ }
+})();
+
/**
* select a range in an input field
* @link http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area