]> source.dussan.org Git - nextcloud-server.git/commitdiff
some little js fixes for drop import
authorGeorg Ehrke <dev@georgswebsite.de>
Sun, 13 May 2012 13:08:27 +0000 (15:08 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Sun, 13 May 2012 13:08:27 +0000 (15:08 +0200)
apps/calendar/js/calendar.js

index 8a3f714c5f7a0c9ddfec084cecaf4e44a2a11719..f2e5071ba3c098cc761b88b369bfa599318fb825 100644 (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.');