mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-07 13:56:05 -06:00
commit
a3ccbcfb69
@ -91,7 +91,7 @@ $(document).on('ajaxComplete ready shown.bs.tab', function () {
|
|||||||
|
|
||||||
let icons = {};
|
let icons = {};
|
||||||
|
|
||||||
$.each(buttons, function (k, v) {
|
$.each([buttons, plugins], function (k, v) {
|
||||||
if (v.icon) {
|
if (v.icon) {
|
||||||
icons[v.button ? v.button : k] = '<i class="' + v.icon + '"></i>';
|
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);
|
.attr('contenteditable', false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -76,10 +76,9 @@ function addCart(id, quantity) {
|
|||||||
url: '/ajax/addCart',
|
url: '/ajax/addCart',
|
||||||
data: 'id=' + id + '&quantity=' + quantity,
|
data: 'id=' + id + '&quantity=' + quantity,
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
hideLoader()
|
|
||||||
if (data.status == "success") {
|
if (data.status == "success") {
|
||||||
var url = window.location.origin;
|
var url = window.location.origin;
|
||||||
window.location.replace(url + "/cart");
|
window.location.reload();
|
||||||
} else {
|
} else {
|
||||||
alert(data.msg);
|
alert(data.msg);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -42,4 +42,13 @@
|
|||||||
|
|
||||||
.balance-widget {
|
.balance-widget {
|
||||||
background: #2f89fc;
|
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())
|
priceFormat(advs.price.toString())
|
||||||
top += "<div class='oc-item row adv" + advs.id + "'>" +
|
top += "<div class='oc-item row adv" + advs.id + "'>" +
|
||||||
"<div class='item-image-box col-sm-4'>" +
|
"<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>" +
|
"<img src='" + resim + "' alt='Image' class='img-respon sive'></a>" +
|
||||||
"</div></div><div class='item-info col-sm-8'><div class='ad-info'>" +
|
"</div></div><div class='item-info col-sm-8'><div class='ad-info'>" +
|
||||||
"<h3 class='item-price'>" + priceFormat(advs.price.toString()) + " " + advs.currency + "</h3>" +
|
"<h3 class='item-price'>" + priceFormat(advs.price.toString()) + " " + advs.currency + "</h3>" +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user