From 2374f4ca4b0b064118cd6cc33f8315a60715c3d4 Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 30 Aug 2012 04:01:58 +0200 Subject: Refactored edit form. --- views/default/js/event_calendar/event_calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/default/js') diff --git a/views/default/js/event_calendar/event_calendar.php b/views/default/js/event_calendar/event_calendar.php index 6150feb79..360f39f6c 100644 --- a/views/default/js/event_calendar/event_calendar.php +++ b/views/default/js/event_calendar/event_calendar.php @@ -10,7 +10,7 @@ elgg.event_calendar.init = function () { $('.event-calendar-repeating-unselected').live('click',elgg.event_calendar.handleRepeatingSelect); $('.event-calendar-repeating-selected').live('click',elgg.event_calendar.handleRepeatingUnselect); $('#event-calendar-edit').submit(elgg.event_calendar.handleEditFormSubmit); - $('#event-calendar-edit-schedule-type').click(elgg.event_calendar.handleScheduleType); + $('input.elgg-input-radio[name="schedule_type"]').click(elgg.event_calendar.handleScheduleType); elgg.event_calendar.handleScheduleType(); var all_day_field = $('[name="all_day"][type="checkbox"]'); @@ -24,7 +24,7 @@ elgg.event_calendar.init = function () { } elgg.event_calendar.handleScheduleType = function(e) { - var st = $('#event-calendar-edit-schedule-type:checked').val(); + var st = $('input.elgg-input-radio[name="schedule_type"]:checked').val(); if (st == 'poll') { $(".event-calendar-edit-date-wrapper").hide(); $(".event-calendar-edit-reminder-wrapper").hide(); -- cgit v1.2.3