Merge pull request #88 from openclassify/vedatakd

Vedatakd
This commit is contained in:
Ozcan Durak 2019-09-17 10:10:06 +03:00 committed by GitHub
commit a3ccbcfb69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 5 deletions

View File

@ -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);
}
});
});
});

View File

@ -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);
}

View File

@ -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;
}

View File

@ -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>" +