Skip to content

Commit

Permalink
Merge branch 'dev-hiresuit' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
nithinjohn22 committed Dec 17, 2024
2 parents a9b2e9f + e346770 commit 8b332b4
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 29 deletions.
2 changes: 1 addition & 1 deletion admin/templates/overview/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
</a>
</div><!-- .awsm-jobs-overview-col-head -->
<?php
$applications = AWSM_Job_Openings::get_recent_applications( 10, false );
$applications = AWSM_Job_Openings::get_recent_applications( 7, false );
if ( ! empty( $applications ) ) :
foreach ( $applications as $application ) :
$applicant_email = get_post_meta( $application->ID, 'awsm_applicant_email', true );
Expand Down
3 changes: 1 addition & 2 deletions assets/css/admin-global.min.css

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

3 changes: 1 addition & 2 deletions assets/css/admin-overview.min.css

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions assets/css/admin.min.css

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions assets/css/general.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ ul.awsm-error-message li {
padding: 50px 0;
}

.awsm-jobs-loading {
.awsm-job-listings {
position: relative;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/style.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/style.min.css.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions assets/js/admin-overview.min.js

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

3 changes: 1 addition & 2 deletions assets/js/admin.min.js

Large diffs are not rendered by default.

37 changes: 26 additions & 11 deletions assets/js/public/job-listings.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,22 @@ jQuery(function($) {
var formData = $filterForm.serializeArray();
var listings = $wrapper.data('listings');
var specs = $wrapper.data('specs');


$rootWrapper.find('.awsm-filter-item').each(function() {
var currentLoopSpec = $(this).data('filter');
var searchParams = new URLSearchParams(document.location.search);
var currentSpecQueryVal = searchParams.get(currentLoopSpec);
var $currentOption = $(this).find('.awsm-filter-option');

if ($currentOption.val().length === 0 && currentSpecQueryVal && currentSpecQueryVal.length > 0) {
formData.forEach(function(item) {
if (item.name === $currentOption.attr('name')) {
item.value = '-1';
}
});
}
});

formData.push({
name: 'listings_per_page',
value: listings
Expand Down Expand Up @@ -112,16 +127,16 @@ jQuery(function($) {
awsmJobFilters($rootWrapper);
}

if ($(rootWrapperSelector).length > 0) {
$(rootWrapperSelector).each(function() {
var $currentWrapper = $(this);
var $filterForm = $currentWrapper.find(filterSelector + ' form');
if (awsmJobsPublic.is_search.length > 0 || filterCheck($filterForm)) {
triggerFilter = true;
awsmJobFilters($currentWrapper);
}
});
}
// if ($(rootWrapperSelector).length > 0) {
// $(rootWrapperSelector).each(function() {
// var $currentWrapper = $(this);
// var $filterForm = $currentWrapper.find(filterSelector + ' form');
// if (awsmJobsPublic.is_search.length > 0 || filterCheck($filterForm)) {
// triggerFilter = true;
// awsmJobFilters($currentWrapper);
// }
// });
// }

var updateQuery = function(key, value, url) {
url = typeof url !== 'undefined' ? url : currentUrl;
Expand Down
2 changes: 1 addition & 1 deletion assets/js/script.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/script.min.js.map

Large diffs are not rendered by default.

0 comments on commit 8b332b4

Please sign in to comment.