From dd459bbb7aa296549e5ef7088480234b0be0c7e1 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 8 Oct 2018 16:17:16 +0200 Subject: [PATCH 1/3] Remove OC.scaleFixForIE8 Signed-off-by: Christoph Wurst --- apps/files/js/mainfileinfodetailview.js | 1 - apps/files/js/newfilemenu.js | 1 - core/js/js.js | 11 ----------- 3 files changed, 13 deletions(-) diff --git a/apps/files/js/mainfileinfodetailview.js b/apps/files/js/mainfileinfodetailview.js index 82860780d3..4a2067e09e 100644 --- a/apps/files/js/mainfileinfodetailview.js +++ b/apps/files/js/mainfileinfodetailview.js @@ -187,7 +187,6 @@ } else { var iconUrl = this.model.get('icon') || OC.MimeType.getIconUrl('dir'); $iconDiv.css('background-image', 'url("' + iconUrl + '")'); - OC.Util.scaleFixForIE8($iconDiv); } this.$el.find('[title]').tooltip({placement: 'bottom'}); } else { diff --git a/apps/files/js/newfilemenu.js b/apps/files/js/newfilemenu.js index 109a2fed67..01a183a33a 100644 --- a/apps/files/js/newfilemenu.js +++ b/apps/files/js/newfilemenu.js @@ -210,7 +210,6 @@ uploadLabel: t('files', 'Upload file'), items: this._menuItems })); - OC.Util.scaleFixForIE8(this.$('.svg')); // Trigger upload action also with keyboard navigation on enter this.$el.find('[for="file_upload_start"]').on('keyup', function(event) { diff --git a/core/js/js.js b/core/js/js.js index 8e7796143d..c95e6375c7 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -2009,17 +2009,6 @@ OC.Util = { */ replaceSVG: function($el) {}, - /** - * Fix image scaling for IE8, since background-size is not supported. - * - * This scales the image to the element's actual size, the URL is - * taken from the "background-image" CSS attribute. - * - * @deprecated IE8 isn't supported since 9.0 - * @param {Object} $el image element - */ - scaleFixForIE8: function($el) {}, - /** * Returns whether this is IE * From d5b53d0ede3c1dc40c9e347c4b33f2a68ff35dde Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 8 Oct 2018 16:18:51 +0200 Subject: [PATCH 2/3] Remove OC.isIE8 Signed-off-by: Christoph Wurst --- core/js/js.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/js/js.js b/core/js/js.js index c95e6375c7..197f375fe1 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -2018,16 +2018,6 @@ OC.Util = { return $('html').hasClass('ie'); }, - /** - * Returns whether this is IE8 - * - * @deprecated IE8 isn't supported since 9.0 - * @return {bool} false (IE8 isn't supported anymore) - */ - isIE8: function() { - return false; - }, - /** * Returns the width of a generic browser scrollbar * From d9783af7bdca7069d76a8e58c0d78d840a02715e Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 8 Oct 2018 16:21:31 +0200 Subject: [PATCH 3/3] Remove outdated comment Signed-off-by: Christoph Wurst --- core/js/js.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/js/js.js b/core/js/js.js index 197f375fe1..5c12031c5e 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1,11 +1,3 @@ -/** - * Disable console output unless DEBUG mode is enabled. - * Add - * 'debug' => true, - * To the definition of $CONFIG in config/config.php to enable debug mode. - * The undefined checks fix the broken ie8 console - */ - /* global oc_isadmin */ var oc_debug;