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

Function c

codebase/dhtmlxscheduler.es.js:1895–1905  ·  view source on GitHub ↗
(u, f, y)

Source from the content-addressed store, hash-verified

1893 }, g = 0; g < 4; g++)
1894 d[g].$_eventAttached || (d[g].$_eventAttached = !0, e.event(d[g], "change", m));
1895 function c(u, f, y) {
1896 for (var w = a._time_values, D = 60 * y.getHours() + y.getMinutes(), M = D, k = !1, N = 0; N < w.length; N++) {
1897 var v = w[N];
1898 if (v === D) {
1899 k = !0;
1900 break;
1901 }
1902 v < D && (M = v);
1903 }
1904 u[f + l[0]].value = k ? D : M, k || M || (u[f + l[0]].selectedIndex = -1), u[f + l[1]].value = y.getDate(), u[f + l[2]].value = y.getMonth(), u[f + l[3]].value = y.getFullYear();
1905 }
1906 c(d, 0, s.start_date), c(d, 4, s.end_date);
1907 }, get_value: function(t, n, s) {
1908 var a = t.getElementsByTagName("select"), o = s._time_format_order;

Callers 9

lFunction · 0.70
VtFunction · 0.70
BtFunction · 0.70
mFunction · 0.70
hFunction · 0.70
gFunction · 0.70
DFunction · 0.70
oFunction · 0.70

Calls 8

dFunction · 0.70
lFunction · 0.70
hFunction · 0.70
uFunction · 0.70
eventMethod · 0.65
calendar_timeMethod · 0.65
date_partMethod · 0.65
hideMethod · 0.45

Tested by

no test coverage detected