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
diff options
context:
space:
mode:
-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;