]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix js for repeating events
authorGeorg Ehrke <dev@georgswebsite.de>
Thu, 5 Jan 2012 19:54:44 +0000 (20:54 +0100)
committerGeorg Ehrke <dev@georgswebsite.de>
Thu, 5 Jan 2012 19:54:44 +0000 (20:54 +0100)
apps/calendar/js/calendar.js

index d776f5c3fb5e8dbc3e06d7c4a23c8846319e04e2..ae586661ccc85c910f9d48c18259103f607795fe 100644 (file)
@@ -279,9 +279,9 @@ Calendar={
                                        minWidth:'auto'
                                });
                                Calendar.UI.repeat('end');
-                               Calendar.UI.repeat('repeat');
                                Calendar.UI.repeat('month');
                                Calendar.UI.repeat('year');
+                               Calendar.UI.repeat('repeat');
                        }
                        if(task == 'end'){
                                $('#byoccurrences').css('display', 'none');
@@ -304,12 +304,14 @@ Calendar={
                                $('#advanced_bymonthday').css('display', 'none');
                                if($('#repeat option:selected').val() == 'monthly'){
                                        $('#advanced_month').css('display', 'block');
+                                       Calendar.UI.repeat('month');
                                }
                                if($('#repeat option:selected').val() == 'weekly'){
                                        $('#advanced_weekday').css('display', 'block');
                                }
                                if($('#repeat option:selected').val() == 'yearly'){
                                        $('#advanced_year').css('display', 'block');
+                                       Calendar.UI.repeat('year');
                                }
                                if($('#repeat option:selected').val() == 'doesnotrepeat'){
                                        $('#advanced_options_repeating').slideUp('slow');
@@ -341,6 +343,7 @@ Calendar={
                                        $('#advanced_weekday').css('display', 'block');
                                }
                        }
+                       
                },
                Calendar:{
                        overview:function(){