Remove deprecated SVG helpers for old IEs
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
8110a3be69
commit
dccb3ab5b2
|
@ -178,11 +178,6 @@
|
||||||
$crumb.append(view.$el);
|
$crumb.append(view.$el);
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
// in case svg is not supported by the browser we need to execute the fallback mechanism
|
|
||||||
if (!OC.Util.hasSVGSupport()) {
|
|
||||||
OC.Util.replaceSVG(this.$el);
|
|
||||||
}
|
|
||||||
|
|
||||||
// setup drag and drop
|
// setup drag and drop
|
||||||
if (this.onDrop) {
|
if (this.onDrop) {
|
||||||
this.$el.find('.crumb:not(:last-child):not(.crumbmenu), .crumblist:not(:last-child)').droppable({
|
this.$el.find('.crumb:not(:last-child):not(.crumbmenu), .crumblist:not(:last-child)').droppable({
|
||||||
|
|
|
@ -168,7 +168,7 @@ OCA.Sharing.PublicApp = {
|
||||||
img.attr('src', OC.generateUrl('/apps/files_sharing/publicpreview/' + token + '?' + OC.buildQueryString(params)));
|
img.attr('src', OC.generateUrl('/apps/files_sharing/publicpreview/' + token + '?' + OC.buildQueryString(params)));
|
||||||
imgcontainer.appendTo('#imgframe');
|
imgcontainer.appendTo('#imgframe');
|
||||||
} else if (mimetype.substr(0, mimetype.indexOf('/')) !== 'video') {
|
} else if (mimetype.substr(0, mimetype.indexOf('/')) !== 'video') {
|
||||||
img.attr('src', OC.Util.replaceSVGIcon(mimetypeIcon));
|
img.attr('src', mimetypeIcon);
|
||||||
img.attr('width', 128);
|
img.attr('width', 128);
|
||||||
imgcontainer.appendTo('#imgframe');
|
imgcontainer.appendTo('#imgframe');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1981,33 +1981,6 @@ OC.Util = {
|
||||||
}
|
}
|
||||||
return moment(timestamp).fromNow();
|
return moment(timestamp).fromNow();
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
* Returns whether the browser supports SVG
|
|
||||||
* @deprecated SVG is always supported (since 9.0)
|
|
||||||
* @return {boolean} true if the browser supports SVG, false otherwise
|
|
||||||
*/
|
|
||||||
hasSVGSupport: function(){
|
|
||||||
return true;
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* If SVG is not supported, replaces the given icon's extension
|
|
||||||
* from ".svg" to ".png".
|
|
||||||
* If SVG is supported, return the image path as is.
|
|
||||||
* @param {string} file image path with svg extension
|
|
||||||
* @deprecated SVG is always supported (since 9.0)
|
|
||||||
* @return {string} fixed image path with png extension if SVG is not supported
|
|
||||||
*/
|
|
||||||
replaceSVGIcon: function(file) {
|
|
||||||
return file;
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Replace SVG images in all elements that have the "svg" class set
|
|
||||||
* with PNG images.
|
|
||||||
*
|
|
||||||
* @param $el root element from which to search, defaults to $('body')
|
|
||||||
* @deprecated SVG is always supported (since 9.0)
|
|
||||||
*/
|
|
||||||
replaceSVG: function($el) {},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fix image scaling for IE8, since background-size is not supported.
|
* Fix image scaling for IE8, since background-size is not supported.
|
||||||
|
|
Loading…
Reference in New Issue