From 3f146fca9de0b20b35958b1216a23f2ab0cf320b Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Thu, 27 Apr 2017 15:36:59 -0700 Subject: [PATCH] Fix announcement audience; Fix disabled buttons --- scripts/system/html/css/hifi-style.css | 2 +- scripts/system/html/js/SnapshotReview.js | 12 ++++++------ scripts/system/snapshot.js | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/system/html/css/hifi-style.css b/scripts/system/html/css/hifi-style.css index 37810707e0..f1ace02eb0 100644 --- a/scripts/system/html/css/hifi-style.css +++ b/scripts/system/html/css/hifi-style.css @@ -166,5 +166,5 @@ input[type=radio]:active + label > span > span{ background-image: linear-gradient(#1080B8, #1080B8); } .blueButton:disabled { - background-image: linear-gradient(#FFFFFF, ##AFAFAF); + background-image: linear-gradient(#FFFFFF, #AFAFAF); } \ No newline at end of file diff --git a/scripts/system/html/js/SnapshotReview.js b/scripts/system/html/js/SnapshotReview.js index d8f1eceae3..53f4d17930 100644 --- a/scripts/system/html/js/SnapshotReview.js +++ b/scripts/system/html/js/SnapshotReview.js @@ -109,8 +109,8 @@ function createShareBar(parentID, isGif, shareURL, hifiShareButtonsDisabled) { var twitterButtonID = parentID + "twitterButton"; shareBar.innerHTML += '' + '' + @@ -172,8 +172,8 @@ function shareForUrl(selectedID) { function blastToConnections(selectedID, isGif) { selectedID = selectedID.id; // `selectedID` is passed as an HTML object to these functions; we just want the ID - document.getElementById(selectedID + "blastToConnectionsButton").setAttribute("disabled", "disabled"); - document.getElementById(selectedID + "shareWithEveryoneButton").setAttribute("disabled", "disabled"); + document.getElementById(selectedID + "blastToConnectionsButton").disabled = true; + document.getElementById(selectedID + "shareWithEveryoneButton").disabled = true; EventBridge.emitWebEvent(JSON.stringify({ type: "snapshot", @@ -185,8 +185,8 @@ function blastToConnections(selectedID, isGif) { function shareWithEveryone(selectedID, isGif) { selectedID = selectedID.id; // `selectedID` is passed as an HTML object to these functions; we just want the ID - document.getElementById(selectedID + "blastToConnectionsButton").setAttribute("disabled", "disabled"); - document.getElementById(selectedID + "shareWithEveryoneButton").setAttribute("disabled", "disabled"); + document.getElementById(selectedID + "blastToConnectionsButton").disabled = true; + document.getElementById(selectedID + "shareWithEveryoneButton").disabled = true; EventBridge.emitWebEvent(JSON.stringify({ type: "snapshot", diff --git a/scripts/system/snapshot.js b/scripts/system/snapshot.js index e342a5d149..1cc24b8265 100644 --- a/scripts/system/snapshot.js +++ b/scripts/system/snapshot.js @@ -198,7 +198,7 @@ function onMessage(message) { } else { var requestBody = { user_story: { - audience: "for_feed", + audience: "for_connections", action: "announcement", path: response.user_story.path, place_name: response.user_story.place_name,