From 9d24b9c7e890de4094bfc83cf17392a4001b6509 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Fri, 26 Jul 2013 13:17:09 +0200 Subject: [PATCH] Hide Delete Permanently button when Restore happens --- apps/files_trashbin/js/trash.js | 4 ++++ 1 file changed, 4 insertions(+) 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"); }); }); -- 2.39.5