summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-30 13:01:53 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-01-30 13:01:53 +0100
commita6e5f4b85c0aea807f95347e68f88faf08dfbee1 (patch)
tree7f1a0a9e61a43db0b472eb933b1dc83e57f24056
parent9639544ca0a2a149d742985bd72e9b4dc2f15347 (diff)
downloadnextcloud-server-a6e5f4b85c0aea807f95347e68f88faf08dfbee1.tar.gz
nextcloud-server-a6e5f4b85c0aea807f95347e68f88faf08dfbee1.zip
some minor improvements
-rw-r--r--apps/files_trashbin/ajax/undelete.php3
-rw-r--r--apps/files_trashbin/js/trash.js6
2 files changed, 5 insertions, 4 deletions
diff --git a/apps/files_trashbin/ajax/undelete.php b/apps/files_trashbin/ajax/undelete.php
index 178d85ccf38..a7bb5b9de2d 100644
--- a/apps/files_trashbin/ajax/undelete.php
+++ b/apps/files_trashbin/ajax/undelete.php
@@ -1,6 +1,6 @@
<?php
-if(!OC_User::isLoggedIn()) {
+if(!OCP\User::isLoggedIn()) {
exit;
}
@@ -9,6 +9,7 @@ $dirlisting = $_REQUEST['dirlisting'];
$list = explode(';', $files);
$error = array();
+$success = array();
$i = 0;
foreach ($list as $file) {
diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js
index 553e4cbc6f0..31d16436b2c 100644
--- a/apps/files_trashbin/js/trash.js
+++ b/apps/files_trashbin/js/trash.js
@@ -30,7 +30,7 @@ $(document).ready(function() {
$('td.filename input:checkbox').attr('checked', false);
$('td.filename input:checkbox').parent().parent().removeClass('selected');
}
- procesSelection();
+ processSelection();
});
$('td.filename input:checkbox').live('change',function(event) {
@@ -59,7 +59,7 @@ $(document).ready(function() {
$('#select_all').attr('checked',true);
}
}
- procesSelection();
+ processSelection();
});
$('.undelete').click('click',function(event) {
@@ -81,7 +81,7 @@ $(document).ready(function() {
});
-function procesSelection(){
+function processSelection(){
var selected=getSelectedFiles();
var selectedFiles=selected.filter(function(el){return el.type=='file'});
var selectedFolders=selected.filter(function(el){return el.type=='dir'});