mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +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() {
|
||||
$('#side-info').find('.btn').attr('href', '#')
|
||||
$('#side-info').find('.btn').on('click', function () {
|
||||
buyButtonClicked("TEST ITEM", "Zach Fox", 10);
|
||||
});
|
||||
|
||||
console.log("ZRF INJECTING HIFI CODE");
|
||||
$('.item-footer').find('#price-or-edit').find('a').attr('href', '#')
|
||||
$('.item-footer').find('#price-or-edit').find('a').on('click', function () {
|
||||
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() {
|
||||
|
@ -354,6 +357,9 @@
|
|||
case HIFI:
|
||||
injectHiFiCode();
|
||||
break;
|
||||
case HIFI_ITEM_PAGE:
|
||||
injectHiFiItemPageCode();
|
||||
break;
|
||||
case CLARA:
|
||||
injectClaraCode();
|
||||
break;
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
tablet.webEventReceived.connect(function (message) {
|
||||
|
||||
if (message.type === "CHECKOUT") {
|
||||
print("ZRF: Buy Button Clicked: ", JSON.stringify(message));
|
||||
console.log("ZRF: Buy Button Clicked: ", JSON.stringify(message));
|
||||
//tablet.pushOntoStack("");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue