Browse Source

Merge pull request #19923 from owncloud/apps-donotdisplaybrokenappiconininternetexplorer

Disable app icon preview in apps page for IE
remotes/origin/dav-zip-folder
Thomas Müller 10 years ago
parent
commit
ae0f20471a
  1. 9
      core/js/js.js
  2. 4
      settings/js/apps.js

9
core/js/js.js

@ -1632,6 +1632,15 @@ OC.Util = {
return $el;
},
/**
* Returns whether this is IE
*
* @return {bool} true if this is IE, false otherwise
*/
isIE: function() {
return $('html').hasClass('ie');
},
/**
* Returns whether this is IE8
*

4
settings/js/apps.js

@ -161,8 +161,8 @@ OC.Settings.Apps = OC.Settings.Apps || {
var page = $('#app-' + app.id);
// image loading kung-fu
if (app.preview) {
// image loading kung-fu (IE doesn't properly scale SVGs, so disable app icons)
if (app.preview && !OC.Util.isIE()) {
var currentImage = new Image();
currentImage.src = app.preview;

Loading…
Cancel
Save