#1111 Change ads link for ad block

This commit is contained in:
Diatrex 2020-03-20 14:35:58 +03:00
parent c4d63a8971
commit 7f1cc9773a
3 changed files with 8 additions and 8 deletions

View File

@ -207,7 +207,7 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
],
'ajax/getAds' => [
'ajax/getAdvs' => [
'as' => 'ajax::getAds',
'uses' => 'Visiosoft\AdvsModule\Http\Controller\AjaxController@getMyAds'
],

View File

@ -81,8 +81,8 @@ function crud(params, url, type, callback) {
});
}
function getMyAds(type) {
crud({'type': type}, '/ajax/getAds', 'GET', function (callback) {
function getMyAdvs(type) {
crud({'type': type}, '/ajax/getAdvs', 'GET', function (callback) {
ads_type = type;
current_page = 1;
objJson = callback.content;
@ -90,11 +90,11 @@ function getMyAds(type) {
})
}
$('.profile-ads-tab a').on('click', function () {
getMyAds($(this).attr('data-type'))
$('.profile-advs-tab a').on('click', function () {
getMyAdvs($(this).attr('data-type'))
});
getMyAds('approved');
getMyAdvs('approved');
function addAdsRow(id, href, image, name, price, city, country, cat1, cat2, status) {

View File

@ -8,8 +8,8 @@
<h3>{{ trans('visiosoft.module.advs::field.my_ads.name') }}</h3>
</div>
<div class="col-md-12 bg-light ads-section">
<nav class="profile-ads-tab">
<div class="col-md-12 bg-light advs-section">
<nav class="profile-advs-tab">
<div class="nav nav-tabs nav-fill" id="nav-tab" role="tablist">
<a class="nav-item nav-link active text-dark" data-type="approved" id="nav-approved-tab"
data-toggle="tab"