Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-07-25 22:48:52 +0300
committerOlivier Paroz <github@oparoz.com>2015-07-25 22:48:52 +0300
commit296764948aeaa1d1866def6dae4fde2569514ccf (patch)
treee19f06dd046d8aa80ee60f9fffb7d7c22568d16d /js
parent49131955ff7e0c466ee00178cd7650aa3e4e7ac5 (diff)
Remove Gallery switch in IE8
Diffstat (limited to 'js')
-rw-r--r--js/gallerybutton.js4
-rw-r--r--js/galleryutility.js6
2 files changed, 7 insertions, 3 deletions
diff --git a/js/gallerybutton.js b/js/gallerybutton.js
index 5d8b88cb..0c36df13 100644
--- a/js/gallerybutton.js
+++ b/js/gallerybutton.js
@@ -37,6 +37,10 @@ $(document).ready(function () {
return true; //deactivate on login page
}
+ if ($('html').is('.ie8')) {
+ return true; //deactivate in IE8
+ }
+
if ($('#isPublic').val()) {
GalleryButton.isPublic = true;
}
diff --git a/js/galleryutility.js b/js/galleryutility.js
index 3a2e6ee0..105b0eb6 100644
--- a/js/galleryutility.js
+++ b/js/galleryutility.js
@@ -33,14 +33,14 @@
* Shows a notification to IE users, letting them know that they should use another browser
* in order to get the best experience
*
- * @param {string} age
+ * @param {string} version
*/
- showIeWarning: function (age) {
+ showIeWarning: function (version) {
var line1 = t('gallery', 'This application may not work properly on your browser.');
var line2 = t('gallery',
'For an improved experience, please install one of the following alternatives');
var timeout = 15;
- if (age === 'old') {
+ if (version === 'unsupportedIe') {
line1 = t('gallery', 'Your browser is not supported!');
line2 = t('gallery', 'please install one of the following alternatives');
timeout = 60;