summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/index.php1
-rw-r--r--apps/files_trashbin/js/trash.js6
-rw-r--r--apps/files_trashbin/templates/index.php2
3 files changed, 7 insertions, 2 deletions
diff --git a/apps/files_trashbin/index.php b/apps/files_trashbin/index.php
index e63fe1e4188..6e6a8a38307 100644
--- a/apps/files_trashbin/index.php
+++ b/apps/files_trashbin/index.php
@@ -11,6 +11,7 @@ $tmpl = new OCP\Template('files_trashbin', 'index', 'user');
OCP\Util::addStyle('files', 'files');
OCP\Util::addStyle('files_trashbin', 'trash');
+OCP\Util::addScript('files', 'filesummary');
OCP\Util::addScript('files', 'breadcrumb');
OCP\Util::addScript('files', 'filelist');
// filelist overrides
diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js
index f7724d07d2b..4ed5ba1c76e 100644
--- a/apps/files_trashbin/js/trash.js
+++ b/apps/files_trashbin/js/trash.js
@@ -34,10 +34,12 @@ $(document).ready(function() {
}
var files = result.data.success;
+ var $el;
for (var i = 0; i < files.length; i++) {
- FileList.remove(OC.basename(files[i].filename), {updateSummary: false});
+ $el = FileList.remove(OC.basename(files[i].filename), {updateSummary: false});
+ FileList.fileSummary.remove({type: $el.attr('data-type'), size: $el.attr('data-size')});
}
- FileList.updateFileSummary();
+ FileList.fileSummary.update();
FileList.updateEmptyContent();
enableActions();
}
diff --git a/apps/files_trashbin/templates/index.php b/apps/files_trashbin/templates/index.php
index b6c61c9b1c3..cb64ae9eafa 100644
--- a/apps/files_trashbin/templates/index.php
+++ b/apps/files_trashbin/templates/index.php
@@ -40,4 +40,6 @@
</thead>
<tbody id="fileList">
</tbody>
+ <tfoot>
+ </tfoot>
</table>