aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-08-02 19:53:04 +0200
committerRobin Appelman <icewind@owncloud.com>2013-08-02 19:53:04 +0200
commit2af27434a4e4fdfa01cbd0714b63f9c360d4a9d1 (patch)
tree5899f2c2f69fe7e08b8c09af8a2b378757284c32 /apps/files/js/files.js
parentd7916363e1efbc15a5dba51056fb8af93330e5eb (diff)
parent43b31f2161775c7db62b46b8e4044f328f774aae (diff)
downloadnextcloud-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.js10
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