Skip to content

Commit 909a0f8

Browse files
Custom Field Assigned to Specific Category Not Working on Load - Add Listing Backend (#2259)
Custom Field Assigned to Specific Category Not Working on Load, When Multidirectory is Disabled - Fixed
1 parent a8a9d8f commit 909a0f8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

assets/js/add-listing.js

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/src/js/global/add-listing.js

+5
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,11 @@ $(function() {
415415
// Create container div after category (in frontend)
416416
$('.directorist-form-categories-field').after('<div class="directorist-form-group atbdp_category_custom_fields"></div>');
417417

418+
window.addEventListener( 'load', function() {
419+
renderCategoryCustomFields();
420+
cacheCategoryCustomFields();
421+
} );
422+
418423
window.addEventListener( 'directorist-type-change', function() {
419424
renderCategoryCustomFields();
420425
cacheCategoryCustomFields();

0 commit comments

Comments
 (0)