mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-07-06 13:59:08 +02:00
minor gui fix to support apostroph in the query
This commit is contained in:
@ -448,11 +448,14 @@ var Piler =
|
||||
{
|
||||
Piler.log("[load_search_results_for_saved_query]", terms);
|
||||
|
||||
terms = decodeURIComponent(terms);
|
||||
|
||||
var pairs = terms.split('&');
|
||||
$.each(pairs, function(i, v){
|
||||
var pair = v.split('=');
|
||||
if(pair[0] == 'search') {
|
||||
$("input#_search").val(pair[1]);
|
||||
var search = decodeURIComponent(pair[1]);
|
||||
$("input#_search").val(search.replace(/\+/g, " "));
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user