Update advanced_search.form.js
Handle Page summary in the case of there is no results
This commit is contained in:
parent
f1a680e5ad
commit
829efe5d63
1 changed files with 11 additions and 5 deletions
|
|
@ -182,12 +182,18 @@
|
|||
window.location.replace(href.split('?')[0]);
|
||||
});
|
||||
|
||||
$("#ajax-page-summary").hide();
|
||||
$( document ).ajaxComplete(function( event, request, settings ) {
|
||||
$(".pager__summary").html($("#ajax-page-summary").html());
|
||||
$("#ajax-page-summary").hide();
|
||||
});
|
||||
// Handle the page summary
|
||||
$("#ajax-page-summary").hide();
|
||||
$( document ).ajaxComplete(function( event, request, settings ) {
|
||||
|
||||
$("#ajax-page-summary").hide();
|
||||
if (jQuery("#ajax-page-summary").length >0) {
|
||||
$(".pager__summary").html($("#ajax-page-summary").html());
|
||||
}
|
||||
else {
|
||||
$(".pager__summary").html("");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue