From 0f1e5894e5d93b87192ccf8c8e5cafff01408bc5 Mon Sep 17 00:00:00 2001 From: Bearded Avenger Date: Thu, 18 Jun 2015 18:55:29 -0500 Subject: [PATCH] only draw default list container if target empty --- public/assets/js/wp-live-search.js | 2 -- public/includes/class.shortcode.php | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/assets/js/wp-live-search.js b/public/assets/js/wp-live-search.js index c4655ca..c956973 100644 --- a/public/assets/js/wp-live-search.js +++ b/public/assets/js/wp-live-search.js @@ -64,8 +64,6 @@ // make the search request $.getJSON( url, function( response ) { - console.log(response) - // remove current list of posts $(postList).children().remove() diff --git a/public/includes/class.shortcode.php b/public/includes/class.shortcode.php index 304ad8a..6f601a4 100644 --- a/public/includes/class.shortcode.php +++ b/public/includes/class.shortcode.php @@ -54,7 +54,9 @@ public function shortcode( $atts, $content = null ) {
+ +