]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix ocbug 34
authorGeorg Ehrke <dev@georgswebsite.de>
Tue, 17 Jan 2012 14:38:32 +0000 (15:38 +0100)
committerGeorg Ehrke <dev@georgswebsite.de>
Tue, 17 Jan 2012 14:38:32 +0000 (15:38 +0100)
apps/calendar/js/calendar.js
apps/calendar/templates/calendar.php

index 33a78b3e3222e4fcf90d6cafe6d99cecc2745885..c5eaeac3cd416c0d8bca053abbb5123cde4e016f 100644 (file)
@@ -429,6 +429,7 @@ Calendar={
                                                        $(button).closest('tr').prev().html(data.page).show().next().remove();
                                                        $('#calendar_holder').fullCalendar('removeEventSource', data.eventSource.url);
                                                        $('#calendar_holder').fullCalendar('addEventSource', data.eventSource);
+                                                       $('#choosecalendar_dialog > table').append('<tr><td colspan="6"><a href="#" onclick="Calendar.UI.Calendar.newCalendar(this);">' + newcalendar + '</a></td></tr>');
                                                }
                                        }, 'json');
                        },
index b50b2c9b46b2340ffee8fd235919b68fadc50cd5..feafd17635bb443e09bec305cde13eeca00f06f1 100755 (executable)
@@ -8,6 +8,7 @@
                                var agendatime = '<?php echo ((int) OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'timeformat', '24') == 24 ? 'HH:mm' : 'hh:mm tt'); ?>{ - <?php echo ((int) OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'timeformat', '24') == 24 ? 'HH:mm' : 'hh:mm tt'); ?>}';
                                var defaulttime = '<?php echo ((int) OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'timeformat', '24') == 24 ? 'HH:mm' : 'hh:mm tt'); ?>';
                                var allDayText = '<?php echo addslashes($l->t('All day')) ?>';
+                               var newcalendar = '<?php echo addslashes($l->t('New Calendar')) ?>';
                                var missing_field = '<?php echo addslashes($l->t('Missing fields')) ?>';
                                var missing_field_title = '<?php echo addslashes($l->t('Title')) ?>';
                                var missing_field_calendar = '<?php echo addslashes($l->t('Calendar')) ?>';