diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-05-13 15:08:27 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-05-13 15:08:27 +0200 |
commit | 0892abd050afab54e22d7c5516d014ed9145321d (patch) | |
tree | d69ea0c407e5f15b8cff8411fb3b9ea4a8ca5fc8 /apps | |
parent | 62a86748b58d37bf308f3d747389ead816c5c03c (diff) | |
download | nextcloud-server-0892abd050afab54e22d7c5516d014ed9145321d.tar.gz nextcloud-server-0892abd050afab54e22d7c5516d014ed9145321d.zip |
some little js fixes for drop import
Diffstat (limited to 'apps')
-rw-r--r-- | apps/calendar/js/calendar.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index 8a3f714c5f7..f2e5071ba3c 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -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.'); |