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

Function do_wrapper

codebase/sources/dhtmlxscheduler.es.js:9488–9498  ·  view source on GitHub ↗
(key2, fullname)

Source from the content-addressed store, hash-verified

9486 };
9487 scheduler2.attachEvent("onTemplatesReady", function() {
9488 var do_wrapper = function(key2, fullname) {
9489 fullname = fullname || key2 + "_scale_date";
9490 if (!scheduler2.templates["_active_links_old_" + fullname]) {
9491 scheduler2.templates["_active_links_old_" + fullname] = scheduler2.templates[fullname];
9492 }
9493 var week_x = scheduler2.templates["_active_links_old_" + fullname];
9494 var d_s = scheduler2.date.date_to_str(scheduler2.config.api_date);
9495 scheduler2.templates[fullname] = function(date) {
9496 return "<a data-link-date='" + d_s(date) + "' href='#'>" + week_x(date) + "</a>";
9497 };
9498 };
9499 do_wrapper("week");
9500 do_wrapper("", "month_day");
9501 if (this.matrix) {

Callers 1

active_linksFunction · 0.70

Calls 1

date_to_strMethod · 0.65

Tested by

no test coverage detected