MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / _init_once

Function _init_once

codebase/sources/dhtmlxscheduler.es.js:14502–14514  ·  view source on GitHub ↗
(inp, date, number)

Source from the content-addressed store, hash-verified

14500 var selects = node.getElementsByTagName("select");
14501 var start_date, end_date;
14502 var _init_once = function(inp, date, number) {
14503 scheduler2.event(inp, "click", function() {
14504 scheduler2.destroyCalendar(null, true);
14505 scheduler2.renderCalendar({ position: inp, date: new Date(this._date), navigation: true, handler: function(new_date) {
14506 inp.value = scheduler2.templates.calendar_time(new_date);
14507 inp._date = new Date(new_date);
14508 scheduler2.destroyCalendar();
14509 if (scheduler2.config.event_duration && scheduler2.config.auto_end_date && number === 0) {
14510 _update_minical_select();
14511 }
14512 } });
14513 });
14514 };
14515 if (scheduler2.config.full_day) {
14516 if (!node._full_day) {
14517 var html = "<label class='dhx_fullday'><input type='checkbox' name='full_day' value='true'> " + scheduler2.locale.labels.full_day + "&nbsp;</label></input>";

Callers 1

_attach_actionFunction · 0.70

Calls 5

_update_minical_selectFunction · 0.70
eventMethod · 0.65
destroyCalendarMethod · 0.65
renderCalendarMethod · 0.65
calendar_timeMethod · 0.65

Tested by

no test coverage detected