Update advanced_search.form.js

Handle Page summary in the case of there is no results
This commit is contained in:
Kyle Huynh 2023-03-02 10:37:38 -05:00 committed by GitHub
parent f1a680e5ad
commit 829efe5d63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,12 +182,18 @@
window.location.replace(href.split('?')[0]);
});
// Handle the page summary
$("#ajax-page-summary").hide();
$( document ).ajaxComplete(function( event, request, settings ) {
$(".pager__summary").html($("#ajax-page-summary").html());
$("#ajax-page-summary").hide();
});
$("#ajax-page-summary").hide();
if (jQuery("#ajax-page-summary").length >0) {
$(".pager__summary").html($("#ajax-page-summary").html());
}
else {
$(".pager__summary").html("");
}
});
}
}
}