From f688c757234feadbc9ce5e559d70f4d9d40a0bec Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 26 Oct 2015 23:19:02 +0200 Subject: Fix searching phones with country code in checkin --- servo/templates/checkin/customer_form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servo/templates/checkin/customer_form.html') diff --git a/servo/templates/checkin/customer_form.html b/servo/templates/checkin/customer_form.html index 305c67a..0f08697 100644 --- a/servo/templates/checkin/customer_form.html +++ b/servo/templates/checkin/customer_form.html @@ -76,7 +76,7 @@ ko.applyBindings(svm); $('#id_phone').next('span').on('click', function(){ - var q = $('#id_phone').val(); + var q = encodeURIComponent($('#id_phone').val()); $.get('?phone=' + q, function(r){ svm.results(r); $('#modal').modal(); -- cgit v1.2.3