diff options
author | Hendrik Leppelsack <hendrik@leppelsack.de> | 2016-06-16 08:28:43 +0200 |
---|---|---|
committer | Hendrik Leppelsack <hendrik@leppelsack.de> | 2016-06-23 12:34:53 +0200 |
commit | e5d872685930e4eecef037468ee14b1132487ca5 (patch) | |
tree | 3def7c33da43bebc6e590c53cee83486cc4be14b /core/js | |
parent | 1e1903e4feffb98bde50cf41618d6bb3ef11c88a (diff) | |
download | nextcloud-server-e5d872685930e4eecef037468ee14b1132487ca5.tar.gz nextcloud-server-e5d872685930e4eecef037468ee14b1132487ca5.zip |
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; }, /** |