]> source.dussan.org Git - nextcloud-server.git/commitdiff
properly replace fileaction icons with pngs when needed
authorRobin Appelman <icewind@owncloud.com>
Sun, 28 Oct 2012 15:03:31 +0000 (16:03 +0100)
committerRobin Appelman <icewind@owncloud.com>
Sun, 28 Oct 2012 15:03:52 +0000 (16:03 +0100)
apps/files/js/fileactions.js

index 24c8e85656c501fcb53288b9716d4d296a5e4f20..901c685ecb2a21a26c7be5fc5f35b0edd59d02c0 100644 (file)
@@ -82,7 +82,7 @@ var FileActions = {
                                }
                                var html = '<a href="#" class="action">';
                                if (img) {
-                                       html += '<img src="' + img + '"/> ';
+                                       html += '<img class ="svg" src="' + img + '"/> ';
                                }
                                html += t('files', name) + '</a>';
                                var element = $(html);
@@ -111,7 +111,7 @@ var FileActions = {
                        }
                        var element = $(html);
                        if (img) {
-                               element.append($('<img src="' + img + '"/>'));
+                               element.append($('<img class ="svg" src="' + img + '"/>'));
                        }
                        element.data('action', 'Delete');
                        element.click(function (event) {