Fix: maestro html ES6 -> ES5
This commit is contained in:
+6
-6
@@ -1,4 +1,4 @@
|
||||
let maestroID = -1;
|
||||
var maestroID = -1;
|
||||
|
||||
$(document).ready(function() {
|
||||
loadMaestroID();
|
||||
@@ -21,7 +21,7 @@ function saveMaestroID(maestroID) {
|
||||
}
|
||||
|
||||
function getParentDirectory(url) {
|
||||
let directories = url.split("/");
|
||||
var directories = url.split("/");
|
||||
if(directories.length < 2)
|
||||
return "";
|
||||
|
||||
@@ -29,7 +29,7 @@ function getParentDirectory(url) {
|
||||
}
|
||||
|
||||
function getPage(url) {
|
||||
let directories = url.split("/");
|
||||
var directories = url.split("/");
|
||||
if(directories.length < 1)
|
||||
return "";
|
||||
|
||||
@@ -37,7 +37,7 @@ function getPage(url) {
|
||||
}
|
||||
|
||||
function goHome() {
|
||||
let url = window.location.href;
|
||||
var url = window.location.href;
|
||||
|
||||
if(getParentDirectory(url) === "maestro") {
|
||||
if(getPage(url) !== "main_menu.html")
|
||||
@@ -66,12 +66,12 @@ function logout() {
|
||||
|
||||
function showErrorMessage(message, type) {
|
||||
console.log("showErrorMessage : " + message);
|
||||
let messageBox = $("#message_box");
|
||||
var messageBox = $("#message_box");
|
||||
|
||||
if(!messageBox)
|
||||
return;
|
||||
|
||||
let alertType = "";
|
||||
var alertType = "";
|
||||
switch(type) {
|
||||
case "success":
|
||||
alertType = "alert-success";
|
||||
|
||||
Reference in New Issue
Block a user