mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:42:58 +02:00
Fix broken Buy buttons on Marketplace
This commit is contained in:
parent
b2c4cdc613
commit
74a5f0881f
1 changed files with 4 additions and 2 deletions
|
@ -265,8 +265,10 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.grid-item').find('#price-or-edit').find('a').each(function() {
|
$('.grid-item').find('#price-or-edit').find('a').each(function() {
|
||||||
$(this).attr('data-href', $(this).attr('href'));
|
if ($(this).attr('href') !== '#') { // Guard necessary because of the AJAX nature of Marketplace site
|
||||||
$(this).attr('href', '#');
|
$(this).attr('data-href', $(this).attr('href'));
|
||||||
|
$(this).attr('href', '#');
|
||||||
|
}
|
||||||
cost = $(this).closest('.col-xs-3').find('.item-cost').text();
|
cost = $(this).closest('.col-xs-3').find('.item-cost').text();
|
||||||
|
|
||||||
$(this).closest('.col-xs-3').prev().attr("class", 'col-xs-6');
|
$(this).closest('.col-xs-3').prev().attr("class", 'col-xs-6');
|
||||||
|
|
Loading…
Reference in a new issue