mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 10:42:41 +01:00
17 lines
405 B
JavaScript
17 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);
|
||
|
});
|
||
|
|
||
|
});
|