aboutsummaryrefslogtreecommitdiff
path: root/views/default/js
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2012-06-04 14:22:57 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2012-06-04 14:22:57 +0200
commit425f301ef3ed02796442c4cff0d33eff25f98edf (patch)
tree340aa6cdfe265a316d625100c724c60a58ced4a5 /views/default/js
parent321fbfdb059e39b921e13ba034855b019981fa44 (diff)
downloadelgg-425f301ef3ed02796442c4cff0d33eff25f98edf.tar.gz
elgg-425f301ef3ed02796442c4cff0d33eff25f98edf.tar.bz2
fixed schedule link and all day form behaviour
Diffstat (limited to 'views/default/js')
-rw-r--r--views/default/js/event_calendar/event_calendar.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/views/default/js/event_calendar/event_calendar.php b/views/default/js/event_calendar/event_calendar.php
index 244846f96..65c4d2952 100644
--- a/views/default/js/event_calendar/event_calendar.php
+++ b/views/default/js/event_calendar/event_calendar.php
@@ -15,10 +15,10 @@ elgg.event_calendar.init = function () {
var all_day_field = $('[name="all_day"][type="checkbox"]');
if (all_day_field.is(':checked')) {
- $('[name="start_time"]').val(0);
- $('[name="start_time"]').attr('disabled','disabled');
- $('[name="end_time"]').val(0);
- $('[name="end_time"]').attr('disabled','disabled');
+ //$('[name="start_time"]').val(0);
+ $('#event-calendar-start-time-wrapper').attr('disabled','disabled');
+ //$('[name="end_time"]').val(0);
+ $('#event-calendar-end-time-wrapper').attr('disabled','disabled');
}
all_day_field.change(elgg.event_calendar.handleAllDayField);
}
@@ -36,11 +36,11 @@ elgg.event_calendar.handleScheduleType = function(e) {
$(".event-calendar-edit-form-membership-block").show();
$(".event-calendar-edit-form-share-block").show();
if (st == 'all_day') {
- $("[name='start_time']").hide();
- $("#event-calendar-to-time-wrapper").hide();
+ $("#event-calendar-start-time-wrapper").hide();
+ $("#event-calendar-end-time-wrapper").hide();
} else {
- $("[name='start_time']").show();
- $("#event-calendar-to-time-wrapper").show();
+ $("#event-calendar-start-time-wrapper").show();
+ $("#event-calendar-end-time-wrapper").show();
}
}
}