mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-25 06:50:55 +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);
|
||
|
});
|
||
|
|
||
|
});
|