mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -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',
|
||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\AjaxController@getMyAds'
|
||||
],
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user