From: Bjoern Schiessle Date: Wed, 9 Oct 2013 10:35:15 +0000 (+0200) Subject: fix group delete/restore X-Git-Tag: v6.0.0alpha2~50^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=31a91ef89294087335077b3ffea1b2a6d882c3ef;p=nextcloud-server.git fix group delete/restore --- diff --git a/apps/files_trashbin/index.php b/apps/files_trashbin/index.php index d8661e170a5..d079af3fb6d 100644 --- a/apps/files_trashbin/index.php +++ b/apps/files_trashbin/index.php @@ -5,7 +5,6 @@ OCP\User::checkLoggedIn(); OCP\App::setActiveNavigationEntry('files_index'); -OCP\Util::addScript('files_trashbin', 'trash'); OCP\Util::addScript('files_trashbin', 'disableDefaultActions'); OCP\Util::addScript('files', 'fileactions'); $tmpl = new OCP\Template('files_trashbin', 'index', 'user'); @@ -15,6 +14,7 @@ OCP\Util::addScript('files', 'filelist'); // filelist overrides OCP\Util::addScript('files_trashbin', 'filelist'); OCP\Util::addscript('files', 'files'); +OCP\Util::addScript('files_trashbin', 'trash'); $dir = isset($_GET['dir']) ? stripslashes($_GET['dir']) : ''; diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js index c530727e623..3cbe79686d7 100644 --- a/apps/files_trashbin/js/trash.js +++ b/apps/files_trashbin/js/trash.js @@ -95,14 +95,13 @@ $(document).ready(function() { $('.undelete').click('click',function(event) { event.preventDefault(); - var spinner = ''; var files=getSelectedFiles('file'); var fileslist = JSON.stringify(files); var dirlisting=getSelectedFiles('dirlisting')[0]; disableActions(); for (var i=0; i'; var files=getSelectedFiles('file'); var fileslist = JSON.stringify(files); var dirlisting=getSelectedFiles('dirlisting')[0]; disableActions(); for (var i=0; i