mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -06:00
#1111 Change ads link for ad block
This commit is contained in:
parent
c4d63a8971
commit
7f1cc9773a
@ -207,7 +207,7 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
|
|||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
'ajax/getAds' => [
|
'ajax/getAdvs' => [
|
||||||
'as' => 'ajax::getAds',
|
'as' => 'ajax::getAds',
|
||||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\AjaxController@getMyAds'
|
'uses' => 'Visiosoft\AdvsModule\Http\Controller\AjaxController@getMyAds'
|
||||||
],
|
],
|
||||||
|
|||||||
@ -81,8 +81,8 @@ function crud(params, url, type, callback) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getMyAds(type) {
|
function getMyAdvs(type) {
|
||||||
crud({'type': type}, '/ajax/getAds', 'GET', function (callback) {
|
crud({'type': type}, '/ajax/getAdvs', 'GET', function (callback) {
|
||||||
ads_type = type;
|
ads_type = type;
|
||||||
current_page = 1;
|
current_page = 1;
|
||||||
objJson = callback.content;
|
objJson = callback.content;
|
||||||
@ -90,11 +90,11 @@ function getMyAds(type) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
$('.profile-ads-tab a').on('click', function () {
|
$('.profile-advs-tab a').on('click', function () {
|
||||||
getMyAds($(this).attr('data-type'))
|
getMyAdvs($(this).attr('data-type'))
|
||||||
});
|
});
|
||||||
|
|
||||||
getMyAds('approved');
|
getMyAdvs('approved');
|
||||||
|
|
||||||
|
|
||||||
function addAdsRow(id, href, image, name, price, city, country, cat1, cat2, status) {
|
function addAdsRow(id, href, image, name, price, city, country, cat1, cat2, status) {
|
||||||
|
|||||||
@ -8,8 +8,8 @@
|
|||||||
<h3>{{ trans('visiosoft.module.advs::field.my_ads.name') }}</h3>
|
<h3>{{ trans('visiosoft.module.advs::field.my_ads.name') }}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-12 bg-light ads-section">
|
<div class="col-md-12 bg-light advs-section">
|
||||||
<nav class="profile-ads-tab">
|
<nav class="profile-advs-tab">
|
||||||
<div class="nav nav-tabs nav-fill" id="nav-tab" role="tablist">
|
<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"
|
<a class="nav-item nav-link active text-dark" data-type="approved" id="nav-approved-tab"
|
||||||
data-toggle="tab"
|
data-toggle="tab"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user