| 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; |