mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
Clarifying comment and turn setting off first
This commit is contained in:
parent
4f85923517
commit
9d60d5153f
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
||||||
var xmlHttpRequest = null;
|
var xmlHttpRequest = null;
|
||||||
var isPreparing = false; // Explicitly track download request status.
|
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) {
|
function injectCommonCode(isDirectoryPage) {
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function injectHiFiCode() {
|
function injectHiFiCode() {
|
||||||
if (confirmPurchases) {
|
if (confirmAllPurchases) {
|
||||||
var target = document.getElementById('templated-items');
|
var target = document.getElementById('templated-items');
|
||||||
// MutationObserver is necessary because the DOM is populated after the page is loaded.
|
// 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
|
// We're searching for changes to the element whose ID is '#templated-items' - this is
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function injectHiFiItemPageCode() {
|
function injectHiFiItemPageCode() {
|
||||||
if (confirmPurchases) {
|
if (confirmAllPurchases) {
|
||||||
$('#side-info').find('.btn').attr('href', '#');
|
$('#side-info').find('.btn').attr('href', '#');
|
||||||
$('#side-info').find('.btn').html('<span class="glyphicon glyphicon-download"></span>Buy Item ');
|
$('#side-info').find('.btn').html('<span class="glyphicon glyphicon-download"></span>Buy Item ');
|
||||||
$('#side-info').find('.btn').on('click', function () {
|
$('#side-info').find('.btn').on('click', function () {
|
||||||
|
|
Loading…
Reference in a new issue