Version Description
- Added a few lines of CSS to fix common layout override issues
- Changed the autocomplete field for a negative tabindex, so it is excluded from keyboard navigation
- For better compatibility, changed the javascript response delimiters to not include "!" characters
- Fixed an issue with the japanese ideographic space character
- Fixed an issue with the search box container width
- Fixed an issue, where the plugin width would "jump" whenever placed in a dynamic width element
Download this release
Release Info
Developer | wpdreams |
Plugin | Ajax Search Lite |
Version | 4.10.3 |
Comparing to | |
See all releases |
Code changes from version 4.10.2 to 4.10.3
- ajax-search-lite.php +3 -3
- css/style.basic.css +4 -1
- includes/classes/actions/class-asl-stylesheets.php +4 -3
- includes/classes/ajax/class-asl-search.php +3 -3
- includes/classes/search/class-asl-search.php +3 -0
- includes/views/asl.shortcode.probox.php +1 -1
- js/legacy/min-scoped/jquery.ajaxsearchlite.min.js +1 -1
- js/legacy/min/jquery.ajaxsearchlite.min.js +1 -1
- js/legacy/nomin-scoped/jquery.ajaxsearchlite.js +1 -1
- js/legacy/nomin/jquery.ajaxsearchlite.js +1 -1
- js/min/plugin/merged/asl.js +1 -1
- js/min/plugin/optimized/asl-core.js +1 -1
- js/nomin/plugin/merged/asl.js +1 -1
- js/nomin/plugin/optimized/asl-core.js +1 -1
- languages/ajax-search-lite.pot +2 -2
- readme.txt +9 -1
ajax-search-lite.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ajax Search Lite
|
4 |
Plugin URI: http://wp-dreams.com
|
5 |
Description: The lite version of the most powerful ajax powered search engine for WordPress.
|
6 |
-
Version: 4.10.
|
7 |
Author: Ernest Marcinko
|
8 |
Author URI: http://wp-dreams.com
|
9 |
Text Domain: ajax-search-lite
|
@@ -26,8 +26,8 @@ define(
|
|
26 |
str_replace('http://', 'https://', plugin_dir_url(__FILE__)) : plugin_dir_url(__FILE__)
|
27 |
);
|
28 |
define('ASL_URL_NP', str_replace(array("http://", "https://"), "//", plugin_dir_url(__FILE__)));
|
29 |
-
define('ASL_CURRENT_VERSION',
|
30 |
-
define('ASL_CURR_VER_STRING', "4.10.
|
31 |
define('ASL_DEBUG', 0);
|
32 |
define('ASL_DEMO', get_option('wd_asl_demo', 0) );
|
33 |
|
3 |
Plugin Name: Ajax Search Lite
|
4 |
Plugin URI: http://wp-dreams.com
|
5 |
Description: The lite version of the most powerful ajax powered search engine for WordPress.
|
6 |
+
Version: 4.10.3
|
7 |
Author: Ernest Marcinko
|
8 |
Author URI: http://wp-dreams.com
|
9 |
Text Domain: ajax-search-lite
|
26 |
str_replace('http://', 'https://', plugin_dir_url(__FILE__)) : plugin_dir_url(__FILE__)
|
27 |
);
|
28 |
define('ASL_URL_NP', str_replace(array("http://", "https://"), "//", plugin_dir_url(__FILE__)));
|
29 |
+
define('ASL_CURRENT_VERSION', 4754);
|
30 |
+
define('ASL_CURR_VER_STRING', "4.10.3");
|
31 |
define('ASL_DEBUG', 0);
|
32 |
define('ASL_DEMO', get_option('wd_asl_demo', 0) );
|
33 |
|
css/style.basic.css
CHANGED
@@ -174,7 +174,7 @@ div.asl_m .probox {
|
|
174 |
}
|
175 |
|
176 |
div.asl_m .probox .proinput {
|
177 |
-
width:
|
178 |
height: 100%;
|
179 |
margin: 0 0 0 10px;
|
180 |
padding: 0 5px;
|
@@ -205,6 +205,8 @@ div.asl_m .probox .proinput input {
|
|
205 |
left: 0;
|
206 |
line-height: normal !important;
|
207 |
display: block;
|
|
|
|
|
208 |
}
|
209 |
|
210 |
div.asl_m .probox .proinput input::-webkit-input-placeholder {
|
@@ -323,6 +325,7 @@ div.asl_m .probox .proclose .innericon {
|
|
323 |
height: 100%;
|
324 |
text-align: center;
|
325 |
overflow: hidden;
|
|
|
326 |
}
|
327 |
|
328 |
div.asl_m .probox .promagnifier .innericon svg,
|
174 |
}
|
175 |
|
176 |
div.asl_m .probox .proinput {
|
177 |
+
width: 1px;
|
178 |
height: 100%;
|
179 |
margin: 0 0 0 10px;
|
180 |
padding: 0 5px;
|
205 |
left: 0;
|
206 |
line-height: normal !important;
|
207 |
display: block;
|
208 |
+
min-height: unset;
|
209 |
+
max-height: unset;
|
210 |
}
|
211 |
|
212 |
div.asl_m .probox .proinput input::-webkit-input-placeholder {
|
325 |
height: 100%;
|
326 |
text-align: center;
|
327 |
overflow: hidden;
|
328 |
+
line-height: initial;
|
329 |
}
|
330 |
|
331 |
div.asl_m .probox .promagnifier .innericon svg,
|
includes/classes/actions/class-asl-stylesheets.php
CHANGED
@@ -58,9 +58,10 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
|
|
58 |
.asl_w_container {
|
59 |
width: " . $asl_options['box_width'] . ";
|
60 |
margin: " . wpdreams_four_to_string($asl_options['box_margin']) . ";
|
|
|
61 |
}
|
62 |
div[id*='ajaxsearchlite'].asl_m {
|
63 |
-
width:
|
64 |
}
|
65 |
div[id*='ajaxsearchliteres'].wpdreams_asl_results div.resdrg span.highlighted {
|
66 |
font-weight: bold;
|
@@ -222,7 +223,7 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
|
|
222 |
if ( !empty($asl_options['box_width_tablet']) && $asl_options['box_width'] != $asl_options['box_width_tablet'] ) {
|
223 |
self::$inline_css .= "
|
224 |
@media only screen and (min-width: 641px) and (max-width: 1024px) {
|
225 |
-
.asl_w_container
|
226 |
width: ".$asl_options['box_width_tablet']." !important;
|
227 |
}
|
228 |
}
|
@@ -243,7 +244,7 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
|
|
243 |
if ( !empty($asl_options['box_width_phone']) && $asl_options['box_width'] != $asl_options['box_width_phone'] ) {
|
244 |
self::$inline_css .= "
|
245 |
@media only screen and (max-width: 640px) {
|
246 |
-
.asl_w_container
|
247 |
width: ".$asl_options['box_width_phone']." !important;
|
248 |
}
|
249 |
}
|
58 |
.asl_w_container {
|
59 |
width: " . $asl_options['box_width'] . ";
|
60 |
margin: " . wpdreams_four_to_string($asl_options['box_margin']) . ";
|
61 |
+
min-width: 200px;
|
62 |
}
|
63 |
div[id*='ajaxsearchlite'].asl_m {
|
64 |
+
width: 100%;
|
65 |
}
|
66 |
div[id*='ajaxsearchliteres'].wpdreams_asl_results div.resdrg span.highlighted {
|
67 |
font-weight: bold;
|
223 |
if ( !empty($asl_options['box_width_tablet']) && $asl_options['box_width'] != $asl_options['box_width_tablet'] ) {
|
224 |
self::$inline_css .= "
|
225 |
@media only screen and (min-width: 641px) and (max-width: 1024px) {
|
226 |
+
.asl_w_container {
|
227 |
width: ".$asl_options['box_width_tablet']." !important;
|
228 |
}
|
229 |
}
|
244 |
if ( !empty($asl_options['box_width_phone']) && $asl_options['box_width'] != $asl_options['box_width_phone'] ) {
|
245 |
self::$inline_css .= "
|
246 |
@media only screen and (max-width: 640px) {
|
247 |
+
.asl_w_container {
|
248 |
width: ".$asl_options['box_width_phone']." !important;
|
249 |
}
|
250 |
}
|
includes/classes/ajax/class-asl-search.php
CHANGED
@@ -63,13 +63,13 @@ if (!class_exists("WD_ASL_Search_Handler")) {
|
|
63 |
|
64 |
$final_output = "";
|
65 |
/* Clear output buffer, possible warnings */
|
66 |
-
$final_output .= "
|
67 |
-
$final_output .= "
|
68 |
$final_output .= json_encode(array(
|
69 |
'results_count' => isset($results["keywords"]) ? 0 : count($results),
|
70 |
'full_results_count' => $asl_query->found_posts
|
71 |
));
|
72 |
-
$final_output .= "
|
73 |
|
74 |
ASL_Helpers::prepareAjaxHeaders();
|
75 |
print_r($final_output);
|
63 |
|
64 |
$final_output = "";
|
65 |
/* Clear output buffer, possible warnings */
|
66 |
+
$final_output .= "___ASLSTART___" . $html_results . "___ASLEND___";
|
67 |
+
$final_output .= "___ASLSTART_DATA___";
|
68 |
$final_output .= json_encode(array(
|
69 |
'results_count' => isset($results["keywords"]) ? 0 : count($results),
|
70 |
'full_results_count' => $asl_query->found_posts
|
71 |
));
|
72 |
+
$final_output .= "___ASLEND_DATA___";
|
73 |
|
74 |
ASL_Helpers::prepareAjaxHeaders();
|
75 |
print_r($final_output);
|
includes/classes/search/class-asl-search.php
CHANGED
@@ -125,6 +125,9 @@ if (!class_exists('ASL_Search')) {
|
|
125 |
else
|
126 |
$keyword = $this->args['s'];
|
127 |
|
|
|
|
|
|
|
128 |
$keyword = $this->compatibility($keyword);
|
129 |
$keyword_rev = ASL_Helpers::reverseString($keyword);
|
130 |
|
125 |
else
|
126 |
$keyword = $this->args['s'];
|
127 |
|
128 |
+
// This is the "japanese" ideographic space character, replaced by the regular space
|
129 |
+
$keyword = preg_replace("@[ ]@u", ' ', $keyword);
|
130 |
+
|
131 |
$keyword = $this->compatibility($keyword);
|
132 |
$keyword_rev = ASL_Helpers::reverseString($keyword);
|
133 |
|
includes/views/asl.shortcode.probox.php
CHANGED
@@ -35,7 +35,7 @@
|
|
35 |
<div class='proinput'>
|
36 |
<form autocomplete="off" aria-label='Ajax search form'>
|
37 |
<input aria-label='Search input' type='search' class='orig' name='phrase' placeholder='<?php echo asl_icl_t( "Search bar placeholder text", w_isset_def($style['defaultsearchtext'], '') ); ?>' value='<?php echo apply_filters('asl_print_search_query', get_search_query()); ?>' autocomplete="off"/>
|
38 |
-
<input aria-label='Autocomplete input, do not use this' type='text' class='autocomplete' name='phrase' value='' autocomplete="off"/>
|
39 |
<input type='submit' value="Start search" style='width:0; height: 0; visibility: hidden;'>
|
40 |
</form>
|
41 |
</div>
|
35 |
<div class='proinput'>
|
36 |
<form autocomplete="off" aria-label='Ajax search form'>
|
37 |
<input aria-label='Search input' type='search' class='orig' name='phrase' placeholder='<?php echo asl_icl_t( "Search bar placeholder text", w_isset_def($style['defaultsearchtext'], '') ); ?>' value='<?php echo apply_filters('asl_print_search_query', get_search_query()); ?>' autocomplete="off"/>
|
38 |
+
<input aria-label='Autocomplete input, do not use this' type='text' class='autocomplete' tabindex="-1" name='phrase' value='' autocomplete="off"/>
|
39 |
<input type='submit' value="Start search" style='width:0; height: 0; visibility: hidden;'>
|
40 |
</form>
|
41 |
</div>
|
js/legacy/min-scoped/jquery.ajaxsearchlite.min.js
CHANGED
@@ -989,7 +989,7 @@
|
|
989 |
// New method without JSON
|
990 |
$this.post = $.post(ASL.ajaxurl, data, function (response) {
|
991 |
response = response.replace(/^\s*[\r\n]/gm, "");
|
992 |
-
response = response.match(
|
993 |
|
994 |
response = apply_filters('asl_search_html', response);
|
995 |
|
989 |
// New method without JSON
|
990 |
$this.post = $.post(ASL.ajaxurl, data, function (response) {
|
991 |
response = response.replace(/^\s*[\r\n]/gm, "");
|
992 |
+
response = response.match(/___ASLSTART___(.*[\s\S]*)___ASLEND___/)[1];
|
993 |
|
994 |
response = apply_filters('asl_search_html', response);
|
995 |
|
js/legacy/min/jquery.ajaxsearchlite.min.js
CHANGED
@@ -37,7 +37,7 @@ l(this.o.homeurl+c,"post",{asl_active:1,p_asl_data:b("form",this.n.searchsetting
|
|
37 |
this.n.search.remove();this.n.container.remove()},searchfor:function(a){b(".proinput input",this).val(a).trigger("keyup")},initAutocompleteEvent:function(){var a=this;if(1==a.o.autocomplete.enabled&&!g())a.n.text.on("keyup",function(c){window.event?(a.keycode=window.event.keyCode,a.ktype=window.event.type):c&&(a.keycode=c.which,a.ktype=c.type);var e=39;b("body").hasClass("rtl")&&(e=37);a.keycode==e&&""!=a.n.textAutocomplete.val()?(c.preventDefault(),a.n.text.val(a.n.textAutocomplete.val()),null!=
|
38 |
a.post&&a.post.abort(),a.search()):(null!=a.postAuto&&a.postAuto.abort(),a.autocompleteGoogleOnly())})},autocompleteGoogleOnly:function(){var a=this,c=a.n.text.val();if(""==a.n.text.val())a.n.textAutocomplete.val("");else{var e=a.n.textAutocomplete.val();if(""==e||0!=e.indexOf(c))a.n.textAutocomplete.val(""),b.ajax({url:"https://clients1.google.com/complete/search",dataType:"jsonp",data:{q:c,hl:a.o.autocomplete.lang,nolabels:"t",client:"hp",ds:""},success:function(d){0<d[1].length&&(response=d[1][0][0].replace(/(<([^>]+)>)/ig,
|
39 |
""),response=b("<textarea />").html(response).text(),response=response.substr(c.length),a.n.textAutocomplete.val(c+response))}})}},search:function(){var a=this;if(!(a.n.text.val().length<a.o.charcount)){a.searching=!0;a.n.proloading.css({display:"block"});a.n.proclose.css({display:"none"});var c={action:"ajaxsearchlite_search",aslp:a.n.text.val(),asid:a.o.id,options:b("form",a.n.searchsettings).serialize()};c=q("asl_search_data",c);if(JSON.stringify(c)===JSON.stringify(a.lastSearchData))return a.resultsOpened||
|
40 |
-
a.showResults(),a.hideLoader(),a.isRedirectToFirstResult()&&a.doRedirectToFirstResult(),!1;a.gaEvent("search_start");a.post=b.post(ASL.ajaxurl,c,function(e){e=e.replace(/^\s*[\r\n]/gm,"");e=e.match(
|
41 |
a.n.items=b(".item",a.n.resultsDiv);a.gaEvent("search_end",{results_count:a.n.items.length});a.gaPageview(a.n.text.val());if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),!1;a.hideLoader();a.showResults();a.scrollToResults();a.lastSuccesfulSearch=b("form",a.n.searchsettings).serialize()+a.n.text.val().trim();a.lastSearchData=c;0==a.n.items.length?null!=a.n.showmore&&a.n.showmore.css("display","none"):null!=a.n.showmore&&(a.n.showmore.css("display","block"),b("a",a.n.showmore).off(),
|
42 |
b("a",a.n.showmore).on("click",function(d){d=a.o.trigger.click;k(a.n.text.val());d="results_page"==d?"?s="+k(a.n.text.val()):"woo_results_page"==d?"?post_type=product&s="+k(a.n.text.val()):a.o.trigger.redirect_url.replace("{phrase}",k(a.n.text.val()));a.o.overridewpdefault?"post"==a.o.override_method?l(a.o.homeurl+d,"post",{asl_active:1,p_asl_data:b("form",a.n.searchsettings).serialize()}):location.href=a.o.homeurl+d+"&asl_active=1&p_asid="+a.o.id+"&p_asl_data=1&"+b("form",a.n.searchsettings).serialize():
|
43 |
l(a.o.homeurl+d,"post",{np_asl_data:b("form",a.n.searchsettings).serialize()})}))},"text").fail(function(e,d,f){e.aborted||"abort"==d||(a.n.resdrg.html(""),a.n.resdrg.html('<div class="asl_nores">The request failed. Please check your connection! Status: '+e.status+"</div>"),a.n.items=b(".item",a.n.resultsDiv),a.hideLoader(),a.showResults(),a.scrollToResults())})}},showLoader:function(){this.n.proloading.css({display:"block"})},hideLoader:function(){this.n.proloading.css({display:"none"});this.n.results.css("display",
|
37 |
this.n.search.remove();this.n.container.remove()},searchfor:function(a){b(".proinput input",this).val(a).trigger("keyup")},initAutocompleteEvent:function(){var a=this;if(1==a.o.autocomplete.enabled&&!g())a.n.text.on("keyup",function(c){window.event?(a.keycode=window.event.keyCode,a.ktype=window.event.type):c&&(a.keycode=c.which,a.ktype=c.type);var e=39;b("body").hasClass("rtl")&&(e=37);a.keycode==e&&""!=a.n.textAutocomplete.val()?(c.preventDefault(),a.n.text.val(a.n.textAutocomplete.val()),null!=
|
38 |
a.post&&a.post.abort(),a.search()):(null!=a.postAuto&&a.postAuto.abort(),a.autocompleteGoogleOnly())})},autocompleteGoogleOnly:function(){var a=this,c=a.n.text.val();if(""==a.n.text.val())a.n.textAutocomplete.val("");else{var e=a.n.textAutocomplete.val();if(""==e||0!=e.indexOf(c))a.n.textAutocomplete.val(""),b.ajax({url:"https://clients1.google.com/complete/search",dataType:"jsonp",data:{q:c,hl:a.o.autocomplete.lang,nolabels:"t",client:"hp",ds:""},success:function(d){0<d[1].length&&(response=d[1][0][0].replace(/(<([^>]+)>)/ig,
|
39 |
""),response=b("<textarea />").html(response).text(),response=response.substr(c.length),a.n.textAutocomplete.val(c+response))}})}},search:function(){var a=this;if(!(a.n.text.val().length<a.o.charcount)){a.searching=!0;a.n.proloading.css({display:"block"});a.n.proclose.css({display:"none"});var c={action:"ajaxsearchlite_search",aslp:a.n.text.val(),asid:a.o.id,options:b("form",a.n.searchsettings).serialize()};c=q("asl_search_data",c);if(JSON.stringify(c)===JSON.stringify(a.lastSearchData))return a.resultsOpened||
|
40 |
+
a.showResults(),a.hideLoader(),a.isRedirectToFirstResult()&&a.doRedirectToFirstResult(),!1;a.gaEvent("search_start");a.post=b.post(ASL.ajaxurl,c,function(e){e=e.replace(/^\s*[\r\n]/gm,"");e=e.match(/___ASLSTART___(.*[\s\S]*)___ASLEND___/)[1];e=q("asl_search_html",e);a.n.resdrg.html("");a.n.resdrg.html(e);b(".asl_keyword",a.n.resdrg).on("click",function(){a.n.text.val(b(this).html());b("input.orig",a.n.search).val(b(this).html()).trigger("keydown");b("form",a.n.search).trigger("submit","ajax");a.search()});
|
41 |
a.n.items=b(".item",a.n.resultsDiv);a.gaEvent("search_end",{results_count:a.n.items.length});a.gaPageview(a.n.text.val());if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),!1;a.hideLoader();a.showResults();a.scrollToResults();a.lastSuccesfulSearch=b("form",a.n.searchsettings).serialize()+a.n.text.val().trim();a.lastSearchData=c;0==a.n.items.length?null!=a.n.showmore&&a.n.showmore.css("display","none"):null!=a.n.showmore&&(a.n.showmore.css("display","block"),b("a",a.n.showmore).off(),
|
42 |
b("a",a.n.showmore).on("click",function(d){d=a.o.trigger.click;k(a.n.text.val());d="results_page"==d?"?s="+k(a.n.text.val()):"woo_results_page"==d?"?post_type=product&s="+k(a.n.text.val()):a.o.trigger.redirect_url.replace("{phrase}",k(a.n.text.val()));a.o.overridewpdefault?"post"==a.o.override_method?l(a.o.homeurl+d,"post",{asl_active:1,p_asl_data:b("form",a.n.searchsettings).serialize()}):location.href=a.o.homeurl+d+"&asl_active=1&p_asid="+a.o.id+"&p_asl_data=1&"+b("form",a.n.searchsettings).serialize():
|
43 |
l(a.o.homeurl+d,"post",{np_asl_data:b("form",a.n.searchsettings).serialize()})}))},"text").fail(function(e,d,f){e.aborted||"abort"==d||(a.n.resdrg.html(""),a.n.resdrg.html('<div class="asl_nores">The request failed. Please check your connection! Status: '+e.status+"</div>"),a.n.items=b(".item",a.n.resultsDiv),a.hideLoader(),a.showResults(),a.scrollToResults())})}},showLoader:function(){this.n.proloading.css({display:"block"})},hideLoader:function(){this.n.proloading.css({display:"none"});this.n.results.css("display",
|
js/legacy/nomin-scoped/jquery.ajaxsearchlite.js
CHANGED
@@ -895,7 +895,7 @@
|
|
895 |
// New method without JSON
|
896 |
$this.post = $.post(ASL.ajaxurl, data, function (response) {
|
897 |
response = response.replace(/^\s*[\r\n]/gm, "");
|
898 |
-
response = response.match(
|
899 |
|
900 |
response = apply_filters('asl_search_html', response);
|
901 |
|
895 |
// New method without JSON
|
896 |
$this.post = $.post(ASL.ajaxurl, data, function (response) {
|
897 |
response = response.replace(/^\s*[\r\n]/gm, "");
|
898 |
+
response = response.match(/___ASLSTART___(.*[\s\S]*)___ASLEND___/)[1];
|
899 |
|
900 |
response = apply_filters('asl_search_html', response);
|
901 |
|
js/legacy/nomin/jquery.ajaxsearchlite.js
CHANGED
@@ -894,7 +894,7 @@
|
|
894 |
// New method without JSON
|
895 |
$this.post = $.post(ASL.ajaxurl, data, function (response) {
|
896 |
response = response.replace(/^\s*[\r\n]/gm, "");
|
897 |
-
response = response.match(
|
898 |
|
899 |
response = apply_filters('asl_search_html', response);
|
900 |
|
894 |
// New method without JSON
|
895 |
$this.post = $.post(ASL.ajaxurl, data, function (response) {
|
896 |
response = response.replace(/^\s*[\r\n]/gm, "");
|
897 |
+
response = response.match(/___ASLSTART___(.*[\s\S]*)___ASLEND___/)[1];
|
898 |
|
899 |
response = apply_filters('asl_search_html', response);
|
900 |
|
js/min/plugin/merged/asl.js
CHANGED
@@ -78,7 +78,7 @@ c(this).outerHeight(!0);c(this).outerHeight(!0)>g&&(g=c(this).outerHeight(!0));d
|
|
78 |
(function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{createVerticalScroll:function(){let b=this.n("results");0<this.o.itemscount&&this.is_scroll&&"undefined"===typeof this.scroll.recalculate&&(this.scroll=new asp_SimpleBar(this.n("results").get(0),{direction:c("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0}),b=b.add(this.scroll.getScrollElement()));b.on("scroll",function(){document.dispatchEvent(new Event("wpd-lazy-trigger"))})}})})(WPD.dom);
|
79 |
(function(c){let b=window.WPD.ajaxsearchlite.helpers;c.fn.extend(window.WPD.ajaxsearchlite.plugin,{searchAbort:function(){null!=this.post&&this.post.abort()},searchWithCheck:function(a){let d=this;"undefined"==typeof a&&(a=50);d.n("text").val().length<d.o.charcount||(d.searchAbort(),clearTimeout(d.timeouts.searchWithCheck),d.timeouts.searchWithCheck=setTimeout(function(){d.search()},a))},search:function(){let a=this;if(!(a.n("text").val().length<a.o.charcount)){a.searching=!0;a.n("proloading").css({display:"block"});
|
80 |
a.n("proclose").css({display:"none"});var d={action:"ajaxsearchlite_search",aslp:a.n("text").val(),asid:a.o.id,options:c("form",a.n("searchsettings")).serialize()};d=b.Hooks.applyFilters("asl/search/data",d);d=b.wp_hooks_apply_filters("asl/search/data",d);if(JSON.stringify(d)===JSON.stringify(a.lastSearchData))return a.resultsOpened||a.showResults(),a.hideLoader(),a.isRedirectToFirstResult()&&a.doRedirectToFirstResult(),!1;var e;null==(e=a.gaEvent)||e.call(a,"search_start");0<c(".asl_es_"+a.o.id).length?
|
81 |
-
a.liveLoad(".asl_es_"+a.o.id,a.getCurrentLiveURL(),!1):a.o.resPage.useAjax?a.liveLoad(a.o.resPage.selector,a.getRedirectURL()):a.post=c.fn.ajax({url:ASL.ajaxurl,method:"POST",data:d,success:function(f){f=f.replace(/^\s*[\r\n]/gm,"");f=f.match(
|
82 |
c("input.orig",a.n("container")).val(c(this).html()).trigger("keydown");c("form",a.n("container")).trigger("submit","ajax");a.search()});a.nodes.items=c(".item",a.n("resultsDiv"));let g;null==(g=a.gaEvent)||g.call(a,"search_end",{results_count:a.n("items").length});let h;null==(h=a.gaPageview)||h.call(a,a.n("text").val());if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),!1;a.hideLoader();a.showResults();a.scrollToResults();a.lastSuccesfulSearch=c("form",a.n("searchsettings")).serialize()+
|
83 |
a.n("text").val().trim();a.lastSearchData=d;a.updateHref();0==a.n("items").length?null!=a.n("showmore")&&a.n("showmore").css("display","none"):null!=a.n("showmore")&&(a.n("showmore").css("display","block"),c("a",a.n("showmore")).off(),c("a",a.n("showmore")).on("click",function(){var k=a.o.trigger.click_location;k="results_page"==k?"?s="+b.nicePhrase(a.n("text").val()):"woo_results_page"==k?"?post_type=product&s="+b.nicePhrase(a.n("text").val()):a.o.trigger.redirect_url.replace("{phrase}",b.nicePhrase(a.n("text").val()));
|
84 |
a.o.overridewpdefault?"post"==a.o.override_method?b.submitToUrl(a.o.homeurl+k,"post",{asl_active:1,p_asl_data:c("form",a.n("searchsettings")).serialize()}):location.href=a.o.homeurl+k+"&asl_active=1&p_asid="+a.o.id+"&p_asl_data=1&"+c("form",a.n("searchsettings")).serialize():b.submitToUrl(a.o.homeurl+k,"post",{np_asl_data:c("form",a.n("searchsettings")).serialize()})}))},fail:function(f){f.aborted||(a.n("resdrg").html(""),a.n("resdrg").html('<div class="asl_nores">The request failed. Please check your connection! Status: '+
|
78 |
(function(c){c.fn.extend(window.WPD.ajaxsearchlite.plugin,{createVerticalScroll:function(){let b=this.n("results");0<this.o.itemscount&&this.is_scroll&&"undefined"===typeof this.scroll.recalculate&&(this.scroll=new asp_SimpleBar(this.n("results").get(0),{direction:c("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0}),b=b.add(this.scroll.getScrollElement()));b.on("scroll",function(){document.dispatchEvent(new Event("wpd-lazy-trigger"))})}})})(WPD.dom);
|
79 |
(function(c){let b=window.WPD.ajaxsearchlite.helpers;c.fn.extend(window.WPD.ajaxsearchlite.plugin,{searchAbort:function(){null!=this.post&&this.post.abort()},searchWithCheck:function(a){let d=this;"undefined"==typeof a&&(a=50);d.n("text").val().length<d.o.charcount||(d.searchAbort(),clearTimeout(d.timeouts.searchWithCheck),d.timeouts.searchWithCheck=setTimeout(function(){d.search()},a))},search:function(){let a=this;if(!(a.n("text").val().length<a.o.charcount)){a.searching=!0;a.n("proloading").css({display:"block"});
|
80 |
a.n("proclose").css({display:"none"});var d={action:"ajaxsearchlite_search",aslp:a.n("text").val(),asid:a.o.id,options:c("form",a.n("searchsettings")).serialize()};d=b.Hooks.applyFilters("asl/search/data",d);d=b.wp_hooks_apply_filters("asl/search/data",d);if(JSON.stringify(d)===JSON.stringify(a.lastSearchData))return a.resultsOpened||a.showResults(),a.hideLoader(),a.isRedirectToFirstResult()&&a.doRedirectToFirstResult(),!1;var e;null==(e=a.gaEvent)||e.call(a,"search_start");0<c(".asl_es_"+a.o.id).length?
|
81 |
+
a.liveLoad(".asl_es_"+a.o.id,a.getCurrentLiveURL(),!1):a.o.resPage.useAjax?a.liveLoad(a.o.resPage.selector,a.getRedirectURL()):a.post=c.fn.ajax({url:ASL.ajaxurl,method:"POST",data:d,success:function(f){f=f.replace(/^\s*[\r\n]/gm,"");f=f.match(/___ASLSTART___(.*[\s\S]*)___ASLEND___/)[1];f=b.Hooks.applyFilters("asl/search/html",f);f=b.wp_hooks_apply_filters("asl/search/html",f);a.n("resdrg").html("");a.n("resdrg").html(f);c(".asl_keyword",a.n("resdrg")).on("click",function(){a.n("text").val(c(this).html());
|
82 |
c("input.orig",a.n("container")).val(c(this).html()).trigger("keydown");c("form",a.n("container")).trigger("submit","ajax");a.search()});a.nodes.items=c(".item",a.n("resultsDiv"));let g;null==(g=a.gaEvent)||g.call(a,"search_end",{results_count:a.n("items").length});let h;null==(h=a.gaPageview)||h.call(a,a.n("text").val());if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),!1;a.hideLoader();a.showResults();a.scrollToResults();a.lastSuccesfulSearch=c("form",a.n("searchsettings")).serialize()+
|
83 |
a.n("text").val().trim();a.lastSearchData=d;a.updateHref();0==a.n("items").length?null!=a.n("showmore")&&a.n("showmore").css("display","none"):null!=a.n("showmore")&&(a.n("showmore").css("display","block"),c("a",a.n("showmore")).off(),c("a",a.n("showmore")).on("click",function(){var k=a.o.trigger.click_location;k="results_page"==k?"?s="+b.nicePhrase(a.n("text").val()):"woo_results_page"==k?"?post_type=product&s="+b.nicePhrase(a.n("text").val()):a.o.trigger.redirect_url.replace("{phrase}",b.nicePhrase(a.n("text").val()));
|
84 |
a.o.overridewpdefault?"post"==a.o.override_method?b.submitToUrl(a.o.homeurl+k,"post",{asl_active:1,p_asl_data:c("form",a.n("searchsettings")).serialize()}):location.href=a.o.homeurl+k+"&asl_active=1&p_asid="+a.o.id+"&p_asl_data=1&"+c("form",a.n("searchsettings")).serialize():b.submitToUrl(a.o.homeurl+k,"post",{np_asl_data:c("form",a.n("searchsettings")).serialize()})}))},fail:function(f){f.aborted||(a.n("resdrg").html(""),a.n("resdrg").html('<div class="asl_nores">The request failed. Please check your connection! Status: '+
|
js/min/plugin/optimized/asl-core.js
CHANGED
@@ -26,7 +26,7 @@ setTimeout(function(){a.scroll.recalculate()},500);a.resultsOpened=!0},hideResul
|
|
26 |
(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{createVerticalScroll:function(){let b=this.n("results");0<this.o.itemscount&&this.is_scroll&&"undefined"===typeof this.scroll.recalculate&&(this.scroll=new asp_SimpleBar(this.n("results").get(0),{direction:d("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0}),b=b.add(this.scroll.getScrollElement()));b.on("scroll",function(){document.dispatchEvent(new Event("wpd-lazy-trigger"))})}})})(WPD.dom);
|
27 |
(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{searchAbort:function(){null!=this.post&&this.post.abort()},searchWithCheck:function(a){let c=this;"undefined"==typeof a&&(a=50);c.n("text").val().length<c.o.charcount||(c.searchAbort(),clearTimeout(c.timeouts.searchWithCheck),c.timeouts.searchWithCheck=setTimeout(function(){c.search()},a))},search:function(){let a=this;if(!(a.n("text").val().length<a.o.charcount)){a.searching=!0;a.n("proloading").css({display:"block"});
|
28 |
a.n("proclose").css({display:"none"});var c={action:"ajaxsearchlite_search",aslp:a.n("text").val(),asid:a.o.id,options:d("form",a.n("searchsettings")).serialize()};c=b.Hooks.applyFilters("asl/search/data",c);c=b.wp_hooks_apply_filters("asl/search/data",c);if(JSON.stringify(c)===JSON.stringify(a.lastSearchData))return a.resultsOpened||a.showResults(),a.hideLoader(),a.isRedirectToFirstResult()&&a.doRedirectToFirstResult(),!1;var f;null==(f=a.gaEvent)||f.call(a,"search_start");0<d(".asl_es_"+a.o.id).length?
|
29 |
-
a.liveLoad(".asl_es_"+a.o.id,a.getCurrentLiveURL(),!1):a.o.resPage.useAjax?a.liveLoad(a.o.resPage.selector,a.getRedirectURL()):a.post=d.fn.ajax({url:ASL.ajaxurl,method:"POST",data:c,success:function(e){e=e.replace(/^\s*[\r\n]/gm,"");e=e.match(
|
30 |
d("input.orig",a.n("container")).val(d(this).html()).trigger("keydown");d("form",a.n("container")).trigger("submit","ajax");a.search()});a.nodes.items=d(".item",a.n("resultsDiv"));let l;null==(l=a.gaEvent)||l.call(a,"search_end",{results_count:a.n("items").length});let m;null==(m=a.gaPageview)||m.call(a,a.n("text").val());if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),!1;a.hideLoader();a.showResults();a.scrollToResults();a.lastSuccesfulSearch=d("form",a.n("searchsettings")).serialize()+
|
31 |
a.n("text").val().trim();a.lastSearchData=c;a.updateHref();0==a.n("items").length?null!=a.n("showmore")&&a.n("showmore").css("display","none"):null!=a.n("showmore")&&(a.n("showmore").css("display","block"),d("a",a.n("showmore")).off(),d("a",a.n("showmore")).on("click",function(){var k=a.o.trigger.click_location;k="results_page"==k?"?s="+b.nicePhrase(a.n("text").val()):"woo_results_page"==k?"?post_type=product&s="+b.nicePhrase(a.n("text").val()):a.o.trigger.redirect_url.replace("{phrase}",b.nicePhrase(a.n("text").val()));
|
32 |
a.o.overridewpdefault?"post"==a.o.override_method?b.submitToUrl(a.o.homeurl+k,"post",{asl_active:1,p_asl_data:d("form",a.n("searchsettings")).serialize()}):location.href=a.o.homeurl+k+"&asl_active=1&p_asid="+a.o.id+"&p_asl_data=1&"+d("form",a.n("searchsettings")).serialize():b.submitToUrl(a.o.homeurl+k,"post",{np_asl_data:d("form",a.n("searchsettings")).serialize()})}))},fail:function(e){e.aborted||(a.n("resdrg").html(""),a.n("resdrg").html('<div class="asl_nores">The request failed. Please check your connection! Status: '+
|
26 |
(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{createVerticalScroll:function(){let b=this.n("results");0<this.o.itemscount&&this.is_scroll&&"undefined"===typeof this.scroll.recalculate&&(this.scroll=new asp_SimpleBar(this.n("results").get(0),{direction:d("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0}),b=b.add(this.scroll.getScrollElement()));b.on("scroll",function(){document.dispatchEvent(new Event("wpd-lazy-trigger"))})}})})(WPD.dom);
|
27 |
(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{searchAbort:function(){null!=this.post&&this.post.abort()},searchWithCheck:function(a){let c=this;"undefined"==typeof a&&(a=50);c.n("text").val().length<c.o.charcount||(c.searchAbort(),clearTimeout(c.timeouts.searchWithCheck),c.timeouts.searchWithCheck=setTimeout(function(){c.search()},a))},search:function(){let a=this;if(!(a.n("text").val().length<a.o.charcount)){a.searching=!0;a.n("proloading").css({display:"block"});
|
28 |
a.n("proclose").css({display:"none"});var c={action:"ajaxsearchlite_search",aslp:a.n("text").val(),asid:a.o.id,options:d("form",a.n("searchsettings")).serialize()};c=b.Hooks.applyFilters("asl/search/data",c);c=b.wp_hooks_apply_filters("asl/search/data",c);if(JSON.stringify(c)===JSON.stringify(a.lastSearchData))return a.resultsOpened||a.showResults(),a.hideLoader(),a.isRedirectToFirstResult()&&a.doRedirectToFirstResult(),!1;var f;null==(f=a.gaEvent)||f.call(a,"search_start");0<d(".asl_es_"+a.o.id).length?
|
29 |
+
a.liveLoad(".asl_es_"+a.o.id,a.getCurrentLiveURL(),!1):a.o.resPage.useAjax?a.liveLoad(a.o.resPage.selector,a.getRedirectURL()):a.post=d.fn.ajax({url:ASL.ajaxurl,method:"POST",data:c,success:function(e){e=e.replace(/^\s*[\r\n]/gm,"");e=e.match(/___ASLSTART___(.*[\s\S]*)___ASLEND___/)[1];e=b.Hooks.applyFilters("asl/search/html",e);e=b.wp_hooks_apply_filters("asl/search/html",e);a.n("resdrg").html("");a.n("resdrg").html(e);d(".asl_keyword",a.n("resdrg")).on("click",function(){a.n("text").val(d(this).html());
|
30 |
d("input.orig",a.n("container")).val(d(this).html()).trigger("keydown");d("form",a.n("container")).trigger("submit","ajax");a.search()});a.nodes.items=d(".item",a.n("resultsDiv"));let l;null==(l=a.gaEvent)||l.call(a,"search_end",{results_count:a.n("items").length});let m;null==(m=a.gaPageview)||m.call(a,a.n("text").val());if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),!1;a.hideLoader();a.showResults();a.scrollToResults();a.lastSuccesfulSearch=d("form",a.n("searchsettings")).serialize()+
|
31 |
a.n("text").val().trim();a.lastSearchData=c;a.updateHref();0==a.n("items").length?null!=a.n("showmore")&&a.n("showmore").css("display","none"):null!=a.n("showmore")&&(a.n("showmore").css("display","block"),d("a",a.n("showmore")).off(),d("a",a.n("showmore")).on("click",function(){var k=a.o.trigger.click_location;k="results_page"==k?"?s="+b.nicePhrase(a.n("text").val()):"woo_results_page"==k?"?post_type=product&s="+b.nicePhrase(a.n("text").val()):a.o.trigger.redirect_url.replace("{phrase}",b.nicePhrase(a.n("text").val()));
|
32 |
a.o.overridewpdefault?"post"==a.o.override_method?b.submitToUrl(a.o.homeurl+k,"post",{asl_active:1,p_asl_data:d("form",a.n("searchsettings")).serialize()}):location.href=a.o.homeurl+k+"&asl_active=1&p_asid="+a.o.id+"&p_asl_data=1&"+d("form",a.n("searchsettings")).serialize():b.submitToUrl(a.o.homeurl+k,"post",{np_asl_data:d("form",a.n("searchsettings")).serialize()})}))},fail:function(e){e.aborted||(a.n("resdrg").html(""),a.n("resdrg").html('<div class="asl_nores">The request failed. Please check your connection! Status: '+
|
js/nomin/plugin/merged/asl.js
CHANGED
@@ -2408,7 +2408,7 @@ window.WPD.intervalUntilExecute = function(f, criteria, interval, maxTries) {
|
|
2408 |
'data': data,
|
2409 |
'success': function (response) {
|
2410 |
response = response.replace(/^\s*[\r\n]/gm, "");
|
2411 |
-
response = response.match(
|
2412 |
|
2413 |
response = helpers.Hooks.applyFilters('asl/search/html', response);
|
2414 |
response = helpers.wp_hooks_apply_filters('asl/search/html', response);
|
2408 |
'data': data,
|
2409 |
'success': function (response) {
|
2410 |
response = response.replace(/^\s*[\r\n]/gm, "");
|
2411 |
+
response = response.match(/___ASLSTART___(.*[\s\S]*)___ASLEND___/)[1];
|
2412 |
|
2413 |
response = helpers.Hooks.applyFilters('asl/search/html', response);
|
2414 |
response = helpers.wp_hooks_apply_filters('asl/search/html', response);
|
js/nomin/plugin/optimized/asl-core.js
CHANGED
@@ -712,7 +712,7 @@
|
|
712 |
'data': data,
|
713 |
'success': function (response) {
|
714 |
response = response.replace(/^\s*[\r\n]/gm, "");
|
715 |
-
response = response.match(
|
716 |
|
717 |
response = helpers.Hooks.applyFilters('asl/search/html', response);
|
718 |
response = helpers.wp_hooks_apply_filters('asl/search/html', response);
|
712 |
'data': data,
|
713 |
'success': function (response) {
|
714 |
response = response.replace(/^\s*[\r\n]/gm, "");
|
715 |
+
response = response.match(/___ASLSTART___(.*[\s\S]*)___ASLEND___/)[1];
|
716 |
|
717 |
response = helpers.Hooks.applyFilters('asl/search/html', response);
|
718 |
response = helpers.wp_hooks_apply_filters('asl/search/html', response);
|
languages/ajax-search-lite.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the Ajax Search Lite plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Ajax Search Lite 4.10.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ajax-search-lite\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2022-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.6.0\n"
|
15 |
"X-Domain: ajax-search-lite\n"
|
2 |
# This file is distributed under the same license as the Ajax Search Lite plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Ajax Search Lite 4.10.3\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ajax-search-lite\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2022-09-17T13:42:22+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.6.0\n"
|
15 |
"X-Domain: ajax-search-lite\n"
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wp-dreams.com
|
|
4 |
Tags: search, better wordpress search, search plugin, relevance search, widget, Post, ajax search, search filter, wp ajax search, custom fields search, better search, ajax search plugin, wp search, wp search plugin, filter, relevant search plugin, wordpress search, Live Search, shortcode, google, autocomplete, suggest, woocommerce, woocommerce search, product, product search, custom search, ajax, suggest, autosuggest, search autocomplete, live, plugin, sidebar, product tag search, products, woocommerce tag search, WooCommerce Plugin, shop, search by sku, relevant search, highlight, term, image, custom search, ecommerce, Predictive Search, search product, shop, typehead, suggest, instant-search
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 6.1
|
7 |
-
Stable tag: 4.10.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -105,6 +105,14 @@ and will let you know what to do.
|
|
105 |
2. Administrator area - nice and smooth
|
106 |
|
107 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
= 4.10.2 =
|
109 |
* Fixed an issue with the script destructor for the init method
|
110 |
* Updated core .pot translation file
|
4 |
Tags: search, better wordpress search, search plugin, relevance search, widget, Post, ajax search, search filter, wp ajax search, custom fields search, better search, ajax search plugin, wp search, wp search plugin, filter, relevant search plugin, wordpress search, Live Search, shortcode, google, autocomplete, suggest, woocommerce, woocommerce search, product, product search, custom search, ajax, suggest, autosuggest, search autocomplete, live, plugin, sidebar, product tag search, products, woocommerce tag search, WooCommerce Plugin, shop, search by sku, relevant search, highlight, term, image, custom search, ecommerce, Predictive Search, search product, shop, typehead, suggest, instant-search
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 6.1
|
7 |
+
Stable tag: 4.10.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
105 |
2. Administrator area - nice and smooth
|
106 |
|
107 |
== Changelog ==
|
108 |
+
= 4.10.3 =
|
109 |
+
* Added a few lines of CSS to fix common layout override issues
|
110 |
+
* Changed the autocomplete field for a negative tabindex, so it is excluded from keyboard navigation
|
111 |
+
* For better compatibility, changed the javascript response delimiters to not include "!" characters
|
112 |
+
* Fixed an issue with the japanese ideographic space character
|
113 |
+
* Fixed an issue with the search box container width
|
114 |
+
* Fixed an issue, where the plugin width would "jump" whenever placed in a dynamic width element
|
115 |
+
|
116 |
= 4.10.2 =
|
117 |
* Fixed an issue with the script destructor for the init method
|
118 |
* Updated core .pot translation file
|