Quick comment updates

This commit is contained in:
Zach Fox 2017-04-25 10:10:58 -07:00
parent ef2e5f78ff
commit d7348aabc8
2 changed files with 5 additions and 5 deletions

View file

@ -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");

View file

@ -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':