Skip to content
Permalink
Browse files

Only add default page search data if there is a response

  • Loading branch information...
gamma committed Aug 24, 2017
1 parent e141285 commit dcc1dc5c3a23caa9b30be6e63b45be783caca530
Showing with 6 additions and 2 deletions.
  1. +6 −2 asyncsearch.js
@@ -67,10 +67,14 @@

/** Provider for the QuickPages Search **/
jQuery.asyncsearch.addProvider( 'pagelookup', function( data ){
jQuery('<div></div>').html(data).appendTo(this);
if ( data.length > 0 ) {
jQuery('<div></div>').html(data).appendTo(this);
}
});

/** Provider for the Page Search **/
jQuery.asyncsearch.addProvider( 'pagesearch', function( data ){
jQuery('<div></div>').html(data).appendTo(this);
if ( data.length > 0 ) {
jQuery('<div></div>').html(data).appendTo(this);
}
});

0 comments on commit dcc1dc5

Please sign in to comment.
You can’t perform that action at this time.