some minor improvements

This commit is contained in:
Björn Schießle 2013-01-30 13:01:53 +01:00
parent 9639544ca0
commit a6e5f4b85c
2 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,6 @@
<?php <?php
if(!OC_User::isLoggedIn()) { if(!OCP\User::isLoggedIn()) {
exit; exit;
} }
@ -9,6 +9,7 @@ $dirlisting = $_REQUEST['dirlisting'];
$list = explode(';', $files); $list = explode(';', $files);
$error = array(); $error = array();
$success = array();
$i = 0; $i = 0;
foreach ($list as $file) { foreach ($list as $file) {

View file

@ -30,7 +30,7 @@ $(document).ready(function() {
$('td.filename input:checkbox').attr('checked', false); $('td.filename input:checkbox').attr('checked', false);
$('td.filename input:checkbox').parent().parent().removeClass('selected'); $('td.filename input:checkbox').parent().parent().removeClass('selected');
} }
procesSelection(); processSelection();
}); });
$('td.filename input:checkbox').live('change',function(event) { $('td.filename input:checkbox').live('change',function(event) {
@ -59,7 +59,7 @@ $(document).ready(function() {
$('#select_all').attr('checked',true); $('#select_all').attr('checked',true);
} }
} }
procesSelection(); processSelection();
}); });
$('.undelete').click('click',function(event) { $('.undelete').click('click',function(event) {
@ -81,7 +81,7 @@ $(document).ready(function() {
}); });
function procesSelection(){ function processSelection(){
var selected=getSelectedFiles(); var selected=getSelectedFiles();
var selectedFiles=selected.filter(function(el){return el.type=='file'}); var selectedFiles=selected.filter(function(el){return el.type=='file'});
var selectedFolders=selected.filter(function(el){return el.type=='dir'}); var selectedFolders=selected.filter(function(el){return el.type=='dir'});