Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Select Field based on Single Location/Category Page #2203

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
49b6100
Disable Select Field based on Single Location/Category Page
iamibrahimriaz Jan 16, 2025
8e5f3a1
improved code
nazmulhasan103 Jan 19, 2025
0758de9
npm run & improved css
nazmulhasan103 Jan 19, 2025
7bdb224
Merge pull request #4 from nazmulhasan103/improve/single-category-loc…
iamibrahimriaz Jan 19, 2025
b3fdaaf
Merge branch 'trunk' of https://github.com/sovware/directorist into i…
iamibrahimriaz Jan 19, 2025
3bfd97c
Updated
iamibrahimriaz Jan 19, 2025
cc221cd
pointer-events - Updated
iamibrahimriaz Jan 21, 2025
2aa8964
Merge branch 'trunk' of https://github.com/sovware/directorist into i…
iamibrahimriaz Jan 21, 2025
5e4bb3a
Category & Location Class - Updated
iamibrahimriaz Jan 23, 2025
baf0c5a
Merge branch 'trunk' of https://github.com/sovware/directorist into i…
iamibrahimriaz Jan 23, 2025
d5a7b2f
Improved logic
nazmulhasan103 Jan 23, 2025
13375af
Merge pull request #6 from nazmulhasan103/improve/single-category-loc…
iamibrahimriaz Jan 23, 2025
2af3849
Improved logic
nazmulhasan103 Jan 23, 2025
4a2a617
Merge pull request #7 from nazmulhasan103/improve/single-category-loc…
iamibrahimriaz Jan 23, 2025
47a4e80
Updated templated version
nazmulhasan103 Jan 23, 2025
7c46def
Merge pull request #8 from nazmulhasan103/improve/single-category-loc…
iamibrahimriaz Jan 23, 2025
6467781
Merge branch 'trunk' into improve/single-category-location
obiPlabon Jan 23, 2025
c4d6899
Single Category Location Class added from data-atts
iamibrahimriaz Jan 26, 2025
e421ef3
Undo changes
nazmulhasan103 Jan 26, 2025
fbb6e5e
Merge pull request #9 from nazmulhasan103/undo/single-category-location
iamibrahimriaz Jan 26, 2025
dd1afb4
SearchForm Item in Single Category Location Initialized on Directory …
iamibrahimriaz Jan 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
SearchForm Item in Single Category Location Initialized on Directory …
…Type Change
  • Loading branch information
iamibrahimriaz committed Jan 26, 2025
commit dd1afb4d992c275f99c6483c022e3a34da0ddd37
9 changes: 6 additions & 3 deletions assets/js/all-listings.js

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

2 changes: 1 addition & 1 deletion assets/js/range-slider.js

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

9 changes: 6 additions & 3 deletions assets/src/js/public/components/instantSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ import debounce from '../../global/components/debounce';
$(_this).closest('.directorist-instant-search').find( '.atbdp-form-fade' ).removeClass('atbdp-form-fade');
window.dispatchEvent(new CustomEvent('directorist-instant-search-reloaded'));
window.dispatchEvent(new CustomEvent('directorist-reload-listings-map-archive'));

// SearchForm Item in Single Category Location Page Init
singleCategoryLocationInit();
}
let events = [
new CustomEvent('directorist-instant-search-reloaded'),
Expand Down Expand Up @@ -1412,9 +1415,9 @@ import debounce from '../../global/components/debounce';
}

if (shortcode === 'directorist_location' && location.trim() !== '') {
const categorySelect = document.querySelector('.directorist-search-form .directorist-location-select');
if (categorySelect) {
categorySelect.closest('.directorist-search-location').classList.add('directorist-search-form__single-location');
const locationSelect = document.querySelector('.directorist-search-form .directorist-location-select');
if (locationSelect) {
locationSelect.closest('.directorist-search-location').classList.add('directorist-search-form__single-location');
}
}
}
Expand Down