From f55102716e55bd5f7d66d75dca625fe990245dbf Mon Sep 17 00:00:00 2001 From: j433866 Date: Tue, 4 Jun 2019 09:39:47 +0100 Subject: [PATCH] Add min / max tabs to go to tab dialog (output) --- src/web/OutputWaiter.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/OutputWaiter.mjs b/src/web/OutputWaiter.mjs index 0c2a7ee1..d0907fb5 100755 --- a/src/web/OutputWaiter.mjs +++ b/src/web/OutputWaiter.mjs @@ -796,7 +796,9 @@ class OutputWaiter { * Handler for go to tab button clicked */ goToTab() { - const tabNum = parseInt(window.prompt("Enter tab number:", this.getActiveTab().toString()), 10); + const min = this.getSmallestInputNum(), + max = this.getLargestInputNum(), + tabNum = parseInt(window.prompt(`Enter tab number (${min} - ${max}):`, this.getActiveTab().toString()), 10); if (this.outputExists(tabNum)) { this.changeTab(tabNum, this.app.options.syncTabs); }