Skip to content

Commit

Permalink
fixed category issue in add listing form (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
Armanul46 authored Nov 12, 2023
1 parent d260be0 commit 9430505
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/add-listing.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions assets/js/admin-main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions assets/js/all-listings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions assets/js/global-main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions assets/js/public-main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions assets/js/search-form.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions assets/src/js/global/components/setup-select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ function initSelect2AjaxFields() {
url: `${rest_base_url}/listings/categories`,
});

initSelect2AjaxTaxonomy({
selector: $('.directorist-form-categories-field').find('select'),
url: `${rest_base_url}/listings/categories`,
});

// Init Select2 Ajax Location Field
initSelect2AjaxTaxonomy({
selector: $('.directorist-search-location').find('select'),
Expand Down

0 comments on commit 9430505

Please sign in to comment.