]> source.dussan.org Git - nextcloud-server.git/commitdiff
Hide Delete Permanently button when Restore happens
authorBjörn Schießle <schiessle@owncloud.com>
Fri, 26 Jul 2013 11:17:09 +0000 (13:17 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Fri, 26 Jul 2013 11:17:09 +0000 (13:17 +0200)
apps/files_trashbin/js/trash.js

index 87dfea491e76afd917c9ba0bcad616be57612b9f..2ced7da44b14afd272757ad47ed6dc8ffbd01d6d 100644 (file)
@@ -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");
                                });
 
                        });