summaryrefslogtreecommitdiffstats
path: root/core/js/oc-dialogs.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-07-08 14:55:11 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-07-09 13:40:13 +0200
commit5c381ea5326501e316704b642aa5b82acd45b20b (patch)
tree51217c9c3a7cfc194abbd7135d896fa6e11200c3 /core/js/oc-dialogs.js
parent1aa2f6638ff1031d30dcb2e28d5f86d0978abdae (diff)
downloadnextcloud-server-5c381ea5326501e316704b642aa5b82acd45b20b.tar.gz
nextcloud-server-5c381ea5326501e316704b642aa5b82acd45b20b.zip
Move calls to Files.getMimeIcon to OC.MimeType.getIconUrl
Diffstat (limited to 'core/js/oc-dialogs.js')
-rw-r--r--core/js/oc-dialogs.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 9f88c268369..52ed34f61ec 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -396,9 +396,8 @@ var OCdialogs = {
function(path){
$replacementDiv.find('.icon').css('background-image','url(' + path + ')');
}, function(){
- Files.getMimeIcon(replacement.type,function(path){
- $replacementDiv.find('.icon').css('background-image','url(' + path + ')');
- });
+ path = OC.MimeType.getIconUrl(replacement.type);
+ $replacementDiv.find('.icon').css('background-image','url(' + path + ')');
}
);
$conflicts.append($conflict);