diff --git a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml index 6f37cc1..ff7f8c7 100644 --- a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml +++ b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml @@ -39,7 +39,7 @@ { } @@ -48,7 +48,7 @@ { } @@ -57,7 +57,7 @@ { } @@ -66,7 +66,7 @@ { } @@ -75,7 +75,7 @@ { } @@ -86,7 +86,7 @@ { } @@ -95,7 +95,7 @@ { } @@ -196,8 +196,47 @@ } } - $(function () { + function checkPage() { + isloadingdone_uptodate = true; + isloadingdone_info = true; + isloadingdone_inverterinfo = true; + isloadingdone_inverter = true; + isloadingdone_history = true; + isloadingdone_exception = true; + isloadingdone_operation = true; + var i1 = document.getElementById("page_UpToDate"); + var i2 = document.getElementById("page_Info"); + var i3 = document.getElementById("page_InverterInfo"); + var i4 = document.getElementById("page_Inverter"); + var i5 = document.getElementById("page_History"); + var i6 = document.getElementById("page_Exception"); + var i7 = document.getElementById("page_OperationRecord"); + if (i1 != null) + { + isloadingdone_uptodate = false; + } + if (i2 != null) { + isloadingdone_info = false; + } + if (i3 != null) { + isloadingdone_inverterinfo = false; + } + if (i4 != null) { + isloadingdone_inverter = false; + } + if (i5 != null) { + isloadingdone_history = false; + } + if (i6 != null) { + isloadingdone_exception = false; + } + if (i7 != null) { + isloadingdone_operation = false; + } + } + $(function () { + checkPage(); var url = new URL(location.href); stationId = url.searchParams.get('stationId');