diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-07-26 13:17:09 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-07-26 13:17:09 +0200 |
commit | 9d24b9c7e890de4094bfc83cf17392a4001b6509 (patch) | |
tree | 316f01a27d1acb749449b0086510043bb11eb190 | |
parent | a5d9b985c3d8a412b831cb1ceb9ba723ecd7a150 (diff) | |
download | nextcloud-server-9d24b9c7e890de4094bfc83cf17392a4001b6509.tar.gz nextcloud-server-9d24b9c7e890de4094bfc83cf17392a4001b6509.zip |
Hide Delete Permanently button when Restore happens
-rw-r--r-- | apps/files_trashbin/js/trash.js | 4 |
1 files changed, 4 insertions, 0 deletions
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"); }); }); |