diff options
author | Sem <sembrestels@riseup.net> | 2012-08-30 04:01:58 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-08-30 04:01:58 +0200 |
commit | 2374f4ca4b0b064118cd6cc33f8315a60715c3d4 (patch) | |
tree | a6a6abe4e214152a6cce5cd0055814b9a7301ec1 /views/default/js/event_calendar | |
parent | 471a4c609d72dd95c99b592ec40c624290e942d2 (diff) | |
download | elgg-2374f4ca4b0b064118cd6cc33f8315a60715c3d4.tar.gz elgg-2374f4ca4b0b064118cd6cc33f8315a60715c3d4.tar.bz2 |
Refactored edit form.
Diffstat (limited to 'views/default/js/event_calendar')
-rw-r--r-- | views/default/js/event_calendar/event_calendar.php | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |