]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix trashbin previews and "delete selected"
authorVincent Petry <pvince81@owncloud.com>
Fri, 4 Apr 2014 14:43:35 +0000 (16:43 +0200)
committerVincent Petry <pvince81@owncloud.com>
Mon, 28 Apr 2014 12:55:01 +0000 (14:55 +0200)
apps/files_trashbin/js/filelist.js
apps/files_trashbin/templates/index.php

index 6c9b345086a8a731e4a0e2418e895f92c29742d4..d4445e11c867592389b80b36f20dbc32db55160a 100644 (file)
@@ -49,8 +49,8 @@
                }
        };
 
-       var oldAdd = FileList.add;
-       FileList.add = function(fileData, options) {
+       var oldRenderRow = FileList._renderRow;
+       FileList._renderRow = function(fileData, options) {
                options = options || {};
                var dir = FileList.getCurrentDirectory();
                var dirListing = dir !== '' && dir !== '/';
@@ -62,7 +62,7 @@
                        fileData.displayName = fileData.name;
                        fileData.name = fileData.name + '.d' + Math.floor(fileData.mtime / 1000);
                }
-               return oldAdd.call(this, fileData, options);
+               return oldRenderRow.call(this, fileData, options);
        };
 
        FileList.linkTo = function(dir){
index cb64ae9eafafd1d44924568b5dbc0dbc396b3190..323e7495535ad08ba10b65aa95a43bb3e1e1a1e4 100644 (file)
@@ -29,7 +29,7 @@
                        <th id="headerDate">
                                <span id="modified"><?php p($l->t( 'Deleted' )); ?></span>
                                <span class="selectedActions">
-                                       <a href="" class="delete">
+                                       <a href="" class="delete-selected">
                                                <?php p($l->t('Delete'))?>
                                                <img class="svg" alt="<?php p($l->t('Delete'))?>"
                                                        src="<?php print_unescaped(OCP\image_path("core", "actions/delete.svg")); ?>" />