[minor] README.md + encode query parameter in search

This commit is contained in:
Rushabh Mehta
2017-04-12 14:31:57 +05:30
parent 141c244ece
commit 66272a168d
3 changed files with 16 additions and 8 deletions

View File

@@ -38,6 +38,14 @@ The ERPNext code is licensed as GNU General Public License (v3) and the Document
---
## Contributing
1. [Pull Request Requirements](https://github.com/frappe/erpnext/wiki/Pull-Request-Guidelines)
1. [Translations](https://translate.erpnext.com)
1. [Chart of Accounts](https://charts.erpnext.com)
---
## Logo and Trademark
The brand name ERPNext and the logo are trademarks of Frappe Technologies Pvt. Ltd.

View File

@@ -13,7 +13,7 @@
frappe.ready(function() {
if(get_url_arg("q")){
var txt = get_url_arg("q");
$(".project-search-results").html("Search results for : " + txt);
$(".project-search-results").html("Search results for : " + encodeURIComponent(txt));
$(".clear").toggle(true);
}
var thread = null;

View File

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