Fixes
This commit is contained in:
+9
-4
@@ -1,7 +1,12 @@
|
||||
function startMenuplan() {
|
||||
updateWeek();
|
||||
startMenu();
|
||||
}
|
||||
document.addEventListener("DOMContentLoaded", function(){
|
||||
// Handler when the DOM is fully loaded
|
||||
var path = window.location.pathname;
|
||||
|
||||
if(path === "/menuplan")
|
||||
{
|
||||
updateWeek();
|
||||
}
|
||||
});
|
||||
|
||||
function updateWeek() {
|
||||
var elm = document.getElementById('week');
|
||||
|
||||
Reference in New Issue
Block a user