Merge branch 'ent-13353-Autorefresco-en-Dashboard-se-mantiene-incluso-si-activamos-la-edicion' into 'develop'
Ent 13353 autorefresco en dashboard se mantiene incluso si activamos la edicion See merge request artica/pandorafms!7351
This commit is contained in:
commit
ad70ee1f5c
|
@ -1722,3 +1722,16 @@ function show_projection_period() {
|
||||||
$("#div_projection_period").hide();
|
$("#div_projection_period").hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paused and resume if edit mode is checked.
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
|
function paused_resume_dashboard_countdown() {
|
||||||
|
$("#checkbox-edit-mode").on("click", function() {
|
||||||
|
let isChecked = $("#checkbox-edit-mode").is(":checked");
|
||||||
|
if (isChecked) {
|
||||||
|
$("#refrcounter").countdown("pause");
|
||||||
|
} else {
|
||||||
|
$("#refrcounter").countdown("resume");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
@ -94,5 +94,8 @@ echo $output;
|
||||||
$("#button-add-widget-"+cellId).trigger("click");
|
$("#button-add-widget-"+cellId).trigger("click");
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paused and resume if edit mode is checked.
|
||||||
|
paused_resume_dashboard_countdown();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue