Merge pull request #12923 from zfox23/MS10864_preventSnapshotSpam

Don't allow users to spam Still Only snapshot capture
This commit is contained in:
Zach Fox 2018-04-18 13:19:36 -07:00 committed by GitHub
commit 3ef0598871
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {