Open ShareBar on P0 by default

This commit is contained in:
Zach Fox 2017-04-26 17:16:01 -07:00
parent 0ac660d4ab
commit 7297355183
2 changed files with 4 additions and 1 deletions

View file

@ -9,7 +9,7 @@
<body> <body>
<div class="title"> <div class="title">
<label>Snapshot Review</label> <label>Snapshots</label>
<label id="settingsLabel" for="snapshotSettings">Settings</label> <label id="settingsLabel" for="snapshotSettings">Settings</label>
<input type="button" class="hifi-glyph naked" id="snapshotSettings" value="@" onclick="snapshotSettings()" /> <input type="button" class="hifi-glyph naked" id="snapshotSettings" value="@" onclick="snapshotSettings()" />
</div> </div>

View file

@ -89,6 +89,9 @@ function appendShareBar(divID, story_id, isGif, hifiShareButtonsDisabled) {
var parentDiv = document.getElementById(divID); var parentDiv = document.getElementById(divID);
parentDiv.setAttribute('data-story-id', story_id); parentDiv.setAttribute('data-story-id', story_id);
document.getElementById(divID).appendChild(createShareBar(divID, isGif, story_url, hifiShareButtonsDisabled)); document.getElementById(divID).appendChild(createShareBar(divID, isGif, story_url, hifiShareButtonsDisabled));
if (divID === "p0") {
selectImageToShare(divID, true);
}
} }
function createShareBar(parentID, isGif, shareURL, hifiShareButtonsDisabled) { function createShareBar(parentID, isGif, shareURL, hifiShareButtonsDisabled) {
var shareBar = document.createElement("div"); var shareBar = document.createElement("div");