From 4e48008ba1f995b73faa28344c7f634581aa1dab Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Tue, 17 Apr 2018 12:39:46 -0700 Subject: [PATCH] Don't allow users to spam Still Only snapshot capture --- scripts/system/html/js/SnapshotReview.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/system/html/js/SnapshotReview.js b/scripts/system/html/js/SnapshotReview.js index 5ea1dd0963..0c3e6199f3 100644 --- a/scripts/system/html/js/SnapshotReview.js +++ b/scripts/system/html/js/SnapshotReview.js @@ -677,7 +677,6 @@ window.onload = function () { shareForUrl("p1"); appendShareBar("p1", messageOptions.isLoggedIn, messageOptions.canShare, true, false, false, messageOptions.canBlast); document.getElementById("p1").classList.remove("processingGif"); - document.getElementById("snap-button").disabled = false; } } else { imageCount = message.image_data.length; @@ -685,6 +684,7 @@ window.onload = function () { addImage(element, messageOptions.isLoggedIn, messageOptions.canShare, false, false, false, false, true); }); } + document.getElementById("snap-button").disabled = false; break; case 'captureSettings': handleCaptureSetting(message.setting); @@ -728,9 +728,7 @@ function takeSnapshot() { type: "snapshot", action: "takeSnapshot" })); - if (document.getElementById('stillAndGif').checked === true) { - document.getElementById("snap-button").disabled = true; - } + document.getElementById("snap-button").disabled = true; } function isPrintDisabled() {