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

Function do_wrapper

codebase/sources/dhtmlxscheduler.js:9492–9502  ·  view source on GitHub ↗
(key2, fullname)

Source from the content-addressed store, hash-verified

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

Callers 1

active_linksFunction · 0.70

Calls 1

date_to_strMethod · 0.65

Tested by

no test coverage detected