Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(monitoring service): Fix columns on list page (MON-3217)
Browse files Browse the repository at this point in the history
  • Loading branch information
callapa committed Dec 12, 2018
1 parent 4cc53de commit 1bf7ff5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion www/include/monitoring/status/Common/commonJS.php
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,11 @@ function monitoring_play() {
document.getElementById('JS_monitoring_pause_gray').style.display = 'none';
document.getElementById('JS_monitoring_play_gray').style.display = 'block';
_on = 1;
initM(<?php echo $tM?>,"<?php echo $sid?>","<?php echo $o?>");
// Allows to use the new status when click on the play button
if (typeof(_o) == "undefined") {
_o = "<?= $o ?>";
}
initM(<?php echo $tM?>, "<?php echo $sid?>", _o)
}

function monitoring_pause() {
Expand Down
4 changes: 0 additions & 4 deletions www/include/monitoring/status/Services/service.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,6 @@ function updateSelect() {

jQuery(function () {
preInit();
/* Disable to prevent double Ajax call*/
//updateSelect();
});

function preInit() {
Expand Down Expand Up @@ -578,7 +576,5 @@ function filterCrit(value) {

function statusServices(value, isInit) {
_o = value;
window.clearTimeout(_timeoutID);
initM(_tm, _sid, _o);
}
</script>
6 changes: 6 additions & 0 deletions www/include/monitoring/status/Services/serviceJS.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ function initM(_time_reload, _sid, _o) {
}

function goM(_time_reload, _sid, _o) {
if (_on == 0) {
return;
}
_lock = 1;
var proc = new Transformation();

Expand Down Expand Up @@ -264,6 +267,9 @@ function goM(_time_reload, _sid, _o) {
}

_lock = 0;
if (_timeoutID) { // Kill next execution if in queue
clearTimeout(_timeoutID);
}
_timeoutID = cycleVisibilityChange(function(){goM(_time_reload, _sid, _o)}, _time_reload);
_time_live = _time_reload;
_on = 1;
Expand Down

0 comments on commit 1bf7ff5

Please sign in to comment.