From dff3186aa7c0020d0fb3fad7950dbcf4bee6a36f Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Sat, 15 Sep 2018 19:32:20 +0300 Subject: [Minor] Enforce return after callback --- interface/js/app/history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'interface') diff --git a/interface/js/app/history.js b/interface/js/app/history.js index fa80a10cd..990f60a09 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -608,7 +608,7 @@ define(["jquery", "footable", "humanize"], var i = (typeof iteration === "undefined") ? 10 : iteration; var num_rows = $("#historyTable > tbody > tr").length; if (num_rows === rows_per_page) { - callback(); + return callback(); } else if (--i) { setTimeout(function () { waitForRowsDisplayed(callback, i); -- cgit v1.2.3