From 4f0df463dfe145155309c9a34f042dfce2e0962f Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Mon, 11 Mar 2019 15:27:25 +1300 Subject: [PATCH] FIX Reference alias for this inside javascript closure - report now works on initial load --- javascript/BrokenExternalLinksReport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/BrokenExternalLinksReport.js b/javascript/BrokenExternalLinksReport.js index 45b0d85..562c5db 100644 --- a/javascript/BrokenExternalLinksReport.js +++ b/javascript/BrokenExternalLinksReport.js @@ -91,7 +91,7 @@ success: function(data) { // No report, so let user create one if (!data) { - this.buttonReset(); + self.buttonReset(); return; }