File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ function hideEventsSkeleton() {
261261 $('#events-skeleton').fadeOut(250, function () { $(this).remove(); });
262262}
263263
264- window.onload = function () {
264+ window.addEventListener('load', function () {
265265 setTimeout(hideEventsSkeleton, 15000);
266- };
266+ }) ;
267267</script>
Original file line number Diff line number Diff line change @@ -294,6 +294,8 @@ function genericSaveData (id) {
294294 generateTabs();
295295 } catch (err) {
296296 console.error("Failed to load data", err);
297+ hideSpinner();
298+ hidePluginsSkeleton();
297299 }
298300}
299301
@@ -865,7 +867,7 @@ function hidePluginsSkeleton() {
865867}
866868
867869window.addEventListener('load', function() {
868- setTimeout(hidePluginsSkeleton, 15000);
870+ setTimeout(function() { hidePluginsSkeleton(); hideSpinner(); } , 15000);
869871});
870872
871873</script>
Original file line number Diff line number Diff line change @@ -510,6 +510,7 @@ function getDevicesPresence (status) {
510510};
511511
512512function hidePresenceSkeleton() {
513+ hideSpinner();
513514 $('#presence-skeleton').fadeOut(250, function() { $(this).remove(); });
514515}
515516
Original file line number Diff line number Diff line change @@ -221,9 +221,9 @@ function hideNotificationsSkeleton() {
221221 $('#notifications-skeleton').fadeOut(250, function () { $(this).remove(); });
222222}
223223
224- window.onload = function () {
224+ window.addEventListener('load', function () {
225225 setTimeout(hideNotificationsSkeleton, 15000);
226- };
226+ }) ;
227227
228228</script>
229229
Original file line number Diff line number Diff line change @@ -1378,6 +1378,7 @@ function saveWorkflows()
13781378});
13791379
13801380function hideWorkflowsSkeleton() {
1381+ hideSpinner();
13811382 $('#workflows-skeleton').fadeOut(250, function() { $(this).remove(); });
13821383}
13831384
You can’t perform that action at this time.
0 commit comments