some little js fixes for drop import

This commit is contained in:
Georg Ehrke 2012-05-13 15:08:27 +02:00
parent 62a86748b5
commit 0892abd050
1 changed files with 2 additions and 2 deletions

View File

@ -628,15 +628,15 @@ Calendar={
return false;
}else{
Calendar.UI.Drop.import(event.target.result);
$('#calendar_holder').fullCalendar('refetchEvents');
}
}
reader.readAsDataURL(file);
}
$('#calendar_holder').fullCalendar('refetchEvents');
},
import:function(data){
$.post(OC.filePath('calendar', 'ajax/import', 'dropimport.php'), {'data':data},function(result) {
if(result.data == 'success'){
if(result.status == 'success'){
return true;
}else{
$('#notification').html('ownCloud wasn\'t able to import at least one file. File skipped.');