mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
commit
a3ccbcfb69
@ -91,7 +91,7 @@ $(document).on('ajaxComplete ready shown.bs.tab', function () {
|
||||
|
||||
let icons = {};
|
||||
|
||||
$.each(buttons, function (k, v) {
|
||||
$.each([buttons, plugins], function (k, v) {
|
||||
if (v.icon) {
|
||||
icons[v.button ? v.button : k] = '<i class="' + v.icon + '"></i>';
|
||||
}
|
||||
@ -152,4 +152,4 @@ $(document).on('ajaxComplete ready shown.bs.tab', function () {
|
||||
.attr('contenteditable', false);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -76,10 +76,9 @@ function addCart(id, quantity) {
|
||||
url: '/ajax/addCart',
|
||||
data: 'id=' + id + '&quantity=' + quantity,
|
||||
success: function (data) {
|
||||
hideLoader()
|
||||
if (data.status == "success") {
|
||||
var url = window.location.origin;
|
||||
window.location.replace(url + "/cart");
|
||||
window.location.reload();
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
|
||||
@ -42,4 +42,13 @@
|
||||
|
||||
.balance-widget {
|
||||
background: #2f89fc;
|
||||
}
|
||||
|
||||
.profile-ad-viewed {
|
||||
position: absolute;
|
||||
background-color: rgba(207,0,15,0.9);
|
||||
padding: 5px;
|
||||
color: white;
|
||||
font-weight: 700;
|
||||
z-index: 999999;
|
||||
}
|
||||
@ -79,7 +79,8 @@ function advs(type) {
|
||||
priceFormat(advs.price.toString())
|
||||
top += "<div class='oc-item row adv" + advs.id + "'>" +
|
||||
"<div class='item-image-box col-sm-4'>" +
|
||||
"<div class='item-image'><a href='/advs/adv/" + advs.id + "'>" +
|
||||
"<div class='item-image'><div class='profile-ad-viewed'><i class='fas fa-eye'></i> "+advs.count_show_ad+"</div>" +
|
||||
"<a href='/advs/adv/" + advs.id + "'>" +
|
||||
"<img src='" + resim + "' alt='Image' class='img-respon sive'></a>" +
|
||||
"</div></div><div class='item-info col-sm-8'><div class='ad-info'>" +
|
||||
"<h3 class='item-price'>" + priceFormat(advs.price.toString()) + " " + advs.currency + "</h3>" +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user