mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 07:10:06 +02:00
Bugfixes
This commit is contained in:
parent
7d4fd995f2
commit
d7dd331685
2 changed files with 12 additions and 6 deletions
|
@ -97,16 +97,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function injectHiFiCode() {
|
function injectHiFiCode() {
|
||||||
$('#side-info').find('.btn').attr('href', '#')
|
console.log("ZRF INJECTING HIFI CODE");
|
||||||
$('#side-info').find('.btn').on('click', function () {
|
|
||||||
buyButtonClicked("TEST ITEM", "Zach Fox", 10);
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.item-footer').find('#price-or-edit').find('a').attr('href', '#')
|
$('.item-footer').find('#price-or-edit').find('a').attr('href', '#')
|
||||||
$('.item-footer').find('#price-or-edit').find('a').on('click', function () {
|
$('.item-footer').find('#price-or-edit').find('a').on('click', function () {
|
||||||
buyButtonClicked("TEST ITEM", "Zach Fox", 10);
|
buyButtonClicked("TEST ITEM", "Zach Fox", 10);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function injectHiFiItemPageCode() {
|
||||||
|
console.log("ZRF INJECTING HIFI ITEM PAGE CODE");
|
||||||
|
$('#side-info').find('.btn').attr('href', '#')
|
||||||
|
$('#side-info').find('.btn').on('click', function () {
|
||||||
|
buyButtonClicked("TEST ITEM", "Zach Fox", 10);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateClaraCode() {
|
function updateClaraCode() {
|
||||||
|
@ -354,6 +357,9 @@
|
||||||
case HIFI:
|
case HIFI:
|
||||||
injectHiFiCode();
|
injectHiFiCode();
|
||||||
break;
|
break;
|
||||||
|
case HIFI_ITEM_PAGE:
|
||||||
|
injectHiFiItemPageCode();
|
||||||
|
break;
|
||||||
case CLARA:
|
case CLARA:
|
||||||
injectClaraCode();
|
injectClaraCode();
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
tablet.webEventReceived.connect(function (message) {
|
tablet.webEventReceived.connect(function (message) {
|
||||||
|
|
||||||
if (message.type === "CHECKOUT") {
|
if (message.type === "CHECKOUT") {
|
||||||
print("ZRF: Buy Button Clicked: ", JSON.stringify(message));
|
console.log("ZRF: Buy Button Clicked: ", JSON.stringify(message));
|
||||||
//tablet.pushOntoStack("");
|
//tablet.pushOntoStack("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue