From: Björn Schießle Date: Fri, 26 Jul 2013 11:17:09 +0000 (+0200) Subject: Hide Delete Permanently button when Restore happens X-Git-Tag: v6.0.0alpha2~389^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9d24b9c7e890de4094bfc83cf17392a4001b6509;p=nextcloud-server.git Hide Delete Permanently button when Restore happens --- diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js index 87dfea491e7..2ced7da44b1 100644 --- a/apps/files_trashbin/js/trash.js +++ b/apps/files_trashbin/js/trash.js @@ -8,6 +8,8 @@ $(document).ready(function() { var undeleteAction = $('tr').filterAttr('data-file',filename).children("td.date"); var files = tr.attr('data-file'); undeleteAction[0].innerHTML = undeleteAction[0].innerHTML+spinner; + $(".action").css("display", "none"); + $(":input:checkbox").css("display", "none"); $.post(OC.filePath('files_trashbin','ajax','undelete.php'), {files:JSON.stringify([files]), dirlisting:tr.attr('data-dirlisting') }, function(result){ @@ -18,6 +20,8 @@ $(document).ready(function() { if (result.status != 'success') { OC.dialogs.alert(result.data.message, t('core', 'Error')); } + $(".action").css("display", "inline"); + $(":input:checkbox").css("display", "inline"); }); });