replace mootools periodical method

This commit is contained in:
Andrew Bauer 2021-01-08 07:32:52 -06:00
parent a431f08133
commit 43fabd9b65
3 changed files with 6 additions and 6 deletions

View File

@ -173,7 +173,7 @@ function manageFunctionModal(evt) {
} // end function manageFunctionModal
function initPage() {
reloadWindow.periodical(consoleRefreshTimeout);
setInterval(reloadWindow, consoleRefreshTimeout);
if ( showDonatePopup ) {
$j.getJSON(thisUrl + '?request=modal&modal=donate')
.done(function(data) {

View File

@ -1,4 +1,4 @@
var periodical_id;
var intervalId;
var pauseBtn = $j('#pauseBtn');
var playBtn = $j('#playBtn');
@ -7,13 +7,13 @@ function nextCycleView() {
}
function cyclePause() {
$clear(periodical_id);
clearInterval(intervalId);
pauseBtn.prop('disabled', true);
playBtn.prop('disabled', false);
}
function cycleStart() {
periodical_id = nextCycleView.periodical(cycleRefreshTimeout);
intervalId = setInterval(nextCycleView, cycleRefreshTimeout);
pauseBtn.prop('disabled', false);
playBtn.prop('disabled', true);
}
@ -41,7 +41,7 @@ function cyclePrev() {
}
function initCycle() {
periodical_id = nextCycleView.periodical(cycleRefreshTimeout);
intervalId = setInterval(nextCycleView, cycleRefreshTimeout);
var scale = $j('#scale').val();
if ( scale == '0' || scale == 'auto' ) changeScale();
}

View File

@ -75,7 +75,7 @@ function exportEvents( ) {
$j('#exportProgress').text(exportProgressString);
//exportProgress();
exportTimer = exportProgress.periodical( 500 );
exportTimer = setInterval(exportProgress, 500);
}
function getEventDetailModal(eid) {