mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:38:27 +02:00
Quick comment updates
This commit is contained in:
parent
ef2e5f78ff
commit
d7348aabc8
2 changed files with 5 additions and 5 deletions
|
@ -131,7 +131,7 @@ function createShareOverlay(parentID, isGif, shareURL, hifiShareButtonsDisabled)
|
||||||
return shareOverlayContainer;
|
return shareOverlayContainer;
|
||||||
}
|
}
|
||||||
function selectImageToShare(selectedID) {
|
function selectImageToShare(selectedID) {
|
||||||
selectedID = selectedID.id; // Why is this necessary?
|
selectedID = selectedID.id; // `selectedID` is passed as an HTML object to these functions; we just want the ID
|
||||||
var shareOverlayContainer = document.getElementById(selectedID + "shareOverlayContainer");
|
var shareOverlayContainer = document.getElementById(selectedID + "shareOverlayContainer");
|
||||||
var shareBar = document.getElementById(selectedID + "shareBar");
|
var shareBar = document.getElementById(selectedID + "shareBar");
|
||||||
var shareOverlayBackground = document.getElementById(selectedID + "shareOverlayBackground");
|
var shareOverlayBackground = document.getElementById(selectedID + "shareOverlayBackground");
|
||||||
|
@ -153,7 +153,7 @@ function shareForUrl(selectedID) {
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
function shareWithEveryone(selectedID, isGif) {
|
function shareWithEveryone(selectedID, isGif) {
|
||||||
selectedID = selectedID.id; // Why is this necessary?
|
selectedID = selectedID.id; // `selectedID` is passed as an HTML object to these functions; we just want the ID
|
||||||
|
|
||||||
document.getElementById(selectedID + "shareWithEveryoneButton").setAttribute("disabled", "disabled");
|
document.getElementById(selectedID + "shareWithEveryoneButton").setAttribute("disabled", "disabled");
|
||||||
document.getElementById(selectedID + "inviteConnectionsCheckbox").setAttribute("disabled", "disabled");
|
document.getElementById(selectedID + "inviteConnectionsCheckbox").setAttribute("disabled", "disabled");
|
||||||
|
@ -174,7 +174,7 @@ function shareButtonClicked(selectedID) {
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
function cancelSharing(selectedID) {
|
function cancelSharing(selectedID) {
|
||||||
selectedID = selectedID.id; // Why is this necessary?
|
selectedID = selectedID.id; // `selectedID` is passed as an HTML object to these functions; we just want the ID
|
||||||
var shareOverlayContainer = document.getElementById(selectedID + "shareOverlayContainer");
|
var shareOverlayContainer = document.getElementById(selectedID + "shareOverlayContainer");
|
||||||
var shareBar = document.getElementById(selectedID + "shareBar");
|
var shareBar = document.getElementById(selectedID + "shareBar");
|
||||||
var shareOverlayBackground = document.getElementById(selectedID + "shareOverlayBackground");
|
var shareOverlayBackground = document.getElementById(selectedID + "shareOverlayBackground");
|
||||||
|
|
|
@ -98,7 +98,7 @@ function onMessage(message) {
|
||||||
var isLoggedIn;
|
var isLoggedIn;
|
||||||
var needsLogin = false;
|
var needsLogin = false;
|
||||||
switch (message.action) {
|
switch (message.action) {
|
||||||
case 'ready': // Send it.
|
case 'ready': // DOM is ready and page has loaded
|
||||||
tablet.emitScriptEvent(JSON.stringify({
|
tablet.emitScriptEvent(JSON.stringify({
|
||||||
type: "snapshot",
|
type: "snapshot",
|
||||||
action: "captureSettings",
|
action: "captureSettings",
|
||||||
|
@ -137,7 +137,7 @@ function onMessage(message) {
|
||||||
print('Sharing snapshot with audience "for_url":', message.data);
|
print('Sharing snapshot with audience "for_url":', message.data);
|
||||||
Window.shareSnapshot(message.data, message.href || href);
|
Window.shareSnapshot(message.data, message.href || href);
|
||||||
} else {
|
} else {
|
||||||
// TODO?
|
// TODO
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'shareSnapshotWithEveryone':
|
case 'shareSnapshotWithEveryone':
|
||||||
|
|
Loading…
Reference in a new issue