diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-08-02 19:53:04 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-08-02 19:53:04 +0200 |
commit | 2af27434a4e4fdfa01cbd0714b63f9c360d4a9d1 (patch) | |
tree | 5899f2c2f69fe7e08b8c09af8a2b378757284c32 /apps/files/js/files.js | |
parent | d7916363e1efbc15a5dba51056fb8af93330e5eb (diff) | |
parent | 43b31f2161775c7db62b46b8e4044f328f774aae (diff) | |
download | nextcloud-server-2af27434a4e4fdfa01cbd0714b63f9c360d4a9d1.tar.gz nextcloud-server-2af27434a4e4fdfa01cbd0714b63f9c360d4a9d1.zip |
merge master into doctrine-object
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r-- | apps/files/js/files.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 98fc53b71a9..3fad3fae7d3 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -121,7 +121,7 @@ $(document).ready(function() { }); // Show trash bin - $('#trash a').live('click', function() { + $('#trash').on('click', function() { window.location=OC.filePath('files_trashbin', '', 'index.php'); }); @@ -845,3 +845,11 @@ function getUniqueName(name){ } return name; } + +function checkTrashStatus() { + $.post(OC.filePath('files_trashbin', 'ajax', 'isEmpty.php'), function(result){ + if (result.data.isEmpty === false) { + $("input[type=button][id=trash]").removeAttr("disabled"); + } + }); +}
\ No newline at end of file |