mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 10:52:41 +01:00
d249456a04
Summary: Closes T8021, All day events should disable time editing in edit view Test Plan: Edit all day event, time text fields should be disabled. Unchecking all-day should show time fields. Reviewers: chad, #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T8021 Differential Revision: https://secure.phabricator.com/D12774
16 lines
405 B
JavaScript
16 lines
405 B
JavaScript
/**
|
|
* @provides javelin-behavior-event-all-day
|
|
*/
|
|
|
|
|
|
JX.behavior('event-all-day', function(config) {
|
|
var checkbox = JX.$(config.allDayID);
|
|
JX.DOM.listen(checkbox, 'change', null, function() {
|
|
var start = JX.$(config.startDateID);
|
|
var end = JX.$(config.endDateID);
|
|
|
|
JX.DOM.alterClass(start, 'no-time', checkbox.checked);
|
|
JX.DOM.alterClass(end, 'no-time', checkbox.checked);
|
|
});
|
|
|
|
});
|