mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
Re-add some code I shouldn't have removed
This commit is contained in:
parent
6e470d5c1c
commit
4a56f769e5
1 changed files with 10 additions and 0 deletions
|
@ -264,6 +264,13 @@
|
||||||
"font-weight": "600",
|
"font-weight": "600",
|
||||||
"line-height": "34px"
|
"line-height": "34px"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (parseInt(cost) > 0) {
|
||||||
|
priceElement.css({ "width": "auto" });
|
||||||
|
priceElement.html('<span class="hifi-glyph hifi-glyph-hfc" style="filter:invert(1);background-size:20px;' +
|
||||||
|
'width:20px;height:20px;position:relative;top:5px;"></span> ' + cost);
|
||||||
|
priceElement.css({ "min-width": priceElement.width() + 30 });
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// change pricing to GET/BUY on button hover
|
// change pricing to GET/BUY on button hover
|
||||||
|
@ -382,6 +389,9 @@
|
||||||
var cost = $('.item-cost').text();
|
var cost = $('.item-cost').text();
|
||||||
var costInt = parseInt(cost, 10);
|
var costInt = parseInt(cost, 10);
|
||||||
var availability = $.trim($('.item-availability').text());
|
var availability = $.trim($('.item-availability').text());
|
||||||
|
if (limitedCommerce && (costInt > 0)) {
|
||||||
|
availability = '';
|
||||||
|
}
|
||||||
if (availability === 'available') {
|
if (availability === 'available') {
|
||||||
purchaseButton.css({
|
purchaseButton.css({
|
||||||
"background": "linear-gradient(#00b4ef, #0093C5)",
|
"background": "linear-gradient(#00b4ef, #0093C5)",
|
||||||
|
|
Loading…
Reference in a new issue