From 9d60d5153ff44e983f3c06ddfe440edce320c6d5 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Tue, 8 Aug 2017 18:00:17 -0700 Subject: [PATCH] Clarifying comment and turn setting off first --- scripts/system/html/js/marketplacesInject.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/system/html/js/marketplacesInject.js b/scripts/system/html/js/marketplacesInject.js index f2cd91852b..f4136de933 100644 --- a/scripts/system/html/js/marketplacesInject.js +++ b/scripts/system/html/js/marketplacesInject.js @@ -26,7 +26,7 @@ var xmlHttpRequest = null; var isPreparing = false; // Explicitly track download request status. - var confirmPurchases = true; + var confirmAllPurchases = false; // Set this to "true" to cause Checkout.qml to popup for all items, even if free function injectCommonCode(isDirectoryPage) { @@ -111,7 +111,7 @@ } function injectHiFiCode() { - if (confirmPurchases) { + if (confirmAllPurchases) { var target = document.getElementById('templated-items'); // MutationObserver is necessary because the DOM is populated after the page is loaded. // We're searching for changes to the element whose ID is '#templated-items' - this is @@ -132,7 +132,7 @@ } function injectHiFiItemPageCode() { - if (confirmPurchases) { + if (confirmAllPurchases) { $('#side-info').find('.btn').attr('href', '#'); $('#side-info').find('.btn').html('Buy Item '); $('#side-info').find('.btn').on('click', function () {