Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
count-jobs.js
/* add live job count on job search */
jQuery( document ).ready( function ( $ ) {
$('div.job_listings').on('updated_results', (function(_this) {
return function(event, results) {
$('#titlebar .count_jobs').html(results.post_count);
};
})(this));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment