mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:10:25 +02:00
Don't allow users to spam Still Only snapshot capture
This commit is contained in:
parent
4c0a0a84fa
commit
4e48008ba1
1 changed files with 2 additions and 4 deletions
|
@ -677,7 +677,6 @@ window.onload = function () {
|
||||||
shareForUrl("p1");
|
shareForUrl("p1");
|
||||||
appendShareBar("p1", messageOptions.isLoggedIn, messageOptions.canShare, true, false, false, messageOptions.canBlast);
|
appendShareBar("p1", messageOptions.isLoggedIn, messageOptions.canShare, true, false, false, messageOptions.canBlast);
|
||||||
document.getElementById("p1").classList.remove("processingGif");
|
document.getElementById("p1").classList.remove("processingGif");
|
||||||
document.getElementById("snap-button").disabled = false;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
imageCount = message.image_data.length;
|
imageCount = message.image_data.length;
|
||||||
|
@ -685,6 +684,7 @@ window.onload = function () {
|
||||||
addImage(element, messageOptions.isLoggedIn, messageOptions.canShare, false, false, false, false, true);
|
addImage(element, messageOptions.isLoggedIn, messageOptions.canShare, false, false, false, false, true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
document.getElementById("snap-button").disabled = false;
|
||||||
break;
|
break;
|
||||||
case 'captureSettings':
|
case 'captureSettings':
|
||||||
handleCaptureSetting(message.setting);
|
handleCaptureSetting(message.setting);
|
||||||
|
@ -728,9 +728,7 @@ function takeSnapshot() {
|
||||||
type: "snapshot",
|
type: "snapshot",
|
||||||
action: "takeSnapshot"
|
action: "takeSnapshot"
|
||||||
}));
|
}));
|
||||||
if (document.getElementById('stillAndGif').checked === true) {
|
document.getElementById("snap-button").disabled = true;
|
||||||
document.getElementById("snap-button").disabled = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function isPrintDisabled() {
|
function isPrintDisabled() {
|
||||||
|
|
Loading…
Reference in a new issue