diff --git a/addons/default/visiosoft/advs-module/src/AdvsModuleServiceProvider.php b/addons/default/visiosoft/advs-module/src/AdvsModuleServiceProvider.php index cebb0c162..64db3eda7 100644 --- a/addons/default/visiosoft/advs-module/src/AdvsModuleServiceProvider.php +++ b/addons/default/visiosoft/advs-module/src/AdvsModuleServiceProvider.php @@ -207,7 +207,7 @@ class AdvsModuleServiceProvider extends AddonServiceProvider ], - 'ajax/getAds' => [ + 'ajax/getAdvs' => [ 'as' => 'ajax::getAds', 'uses' => 'Visiosoft\AdvsModule\Http\Controller\AjaxController@getMyAds' ], diff --git a/addons/default/visiosoft/profile-module/resources/assets/js/ads.js b/addons/default/visiosoft/profile-module/resources/assets/js/ads.js index 275fe0d78..7b876d1fa 100644 --- a/addons/default/visiosoft/profile-module/resources/assets/js/ads.js +++ b/addons/default/visiosoft/profile-module/resources/assets/js/ads.js @@ -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) { diff --git a/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig b/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig index 1e89c13a1..062ab96fa 100644 --- a/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig +++ b/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig @@ -8,8 +8,8 @@