diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-06-27 10:20:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-27 10:20:47 +0200 |
commit | 93f29f57c50510c01fca686fa2779f3e0e620b7d (patch) | |
tree | 0fecc3cfab8f6e7b8b8c0ae1b9341e645dbb9684 /core/js | |
parent | f65787ffdcfd4d6d112e27e11fb108fdfd5f69b9 (diff) | |
parent | e5d872685930e4eecef037468ee14b1132487ca5 (diff) | |
download | nextcloud-server-93f29f57c50510c01fca686fa2779f3e0e620b7d.tar.gz nextcloud-server-93f29f57c50510c01fca686fa2779f3e0e620b7d.zip |
Merge pull request #25129 from owncloud/remove-ie
Remove ie8+9 support
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/js.js | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/core/js/js.js b/core/js/js.js index 1c49d38f950..7f98668dcb2 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -788,7 +788,6 @@ var OC={ $(document).trigger(new $.Event('ajaxError'), xhr); }; - // FIXME: also needs an IE8 way if (xhr.addEventListener) { xhr.addEventListener('load', loadCallback); xhr.addEventListener('error', errorCallback); @@ -1857,30 +1856,10 @@ OC.Util = { * 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) { - if (!this.isIE8()) { - return; - } - var self = this; - $($el).each(function() { - var url = $(this).css('background-image'); - var r = url.match(/url\(['"]?([^'")]*)['"]?\)/); - if (!r) { - return; - } - url = r[1]; - url = self.replaceSVGIcon(url); - // TODO: escape - url = url.replace(/'/g, '%27'); - $(this).css({ - 'filter': 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + url + '\', sizingMethod=\'scale\')', - 'background-image': '' - }); - }); - return $el; - }, + scaleFixForIE8: function($el) {}, /** * Returns whether this is IE @@ -1894,10 +1873,11 @@ OC.Util = { /** * Returns whether this is IE8 * - * @return {bool} true if this is IE8, false otherwise + * @deprecated IE8 isn't supported since 9.0 + * @return {bool} false (IE8 isn't supported anymore) */ isIE8: function() { - return $('html').hasClass('ie8'); + return false; }, /** |