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

Function updateHashFromState

codebase/sources/dhtmlxscheduler.js:21146–21154  ·  view source on GitHub ↗
(optionalSelectedEventId)

Source from the content-addressed store, hash-verified

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

Callers 1

urlFunction · 0.70

Calls 1

getStateMethod · 0.65

Tested by

no test coverage detected