[UX Improvement] Removed uri encoding from search results on front end (#14266)

* removed uri encoding from search results on front end

* decode search string using html2text
This commit is contained in:
Sushant Nadkar 2018-06-06 09:23:38 +05:30 committed by Nabin Hait
parent c37fd050c5
commit d458f7710f

View File

@ -10,7 +10,7 @@
<script>
frappe.ready(function() {
var txt = frappe.utils.get_url_arg("search");
$(".search-results").html("{{ _('Search results for') }}: " + encodeURIComponent(txt));
$(".search-results").html('{{ _("Search results for") + ": " + html2text(frappe.form_dict.search or "")|trim }}');
window.search = txt;
window.start = 0;
window.get_product_list();