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

Function updateHashFromState

codebase/sources/dhtmlxscheduler.es.js:21142–21150  ·  view source on GitHub ↗
(optionalSelectedEventId)

Source from the content-addressed store, hash-verified

21140 return nextState;
21141 };
21142 function updateHashFromState(optionalSelectedEventId) {
21143 const currentDate = scheduler2._date || scheduler2.getState().date;
21144 const currentMode = scheduler2.getState().mode;
21145 const values = ["date=" + dateToString(currentDate), "mode=" + currentMode];
21146 if (optionalSelectedEventId) {
21147 values.push("event=" + optionalSelectedEventId);
21148 }
21149 document.location.hash = "#" + values.join(",");
21150 }
21151 function showEventWhenPossible(eventId) {
21152 if (!eventId) {
21153 return;

Callers 1

urlFunction · 0.70

Calls 1

getStateMethod · 0.65

Tested by

no test coverage detected