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 +- servo/templates/checkin/newindex.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'servo/templates') 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(); diff --git a/servo/templates/checkin/newindex.html b/servo/templates/checkin/newindex.html index 0188583..878ddea 100644 --- a/servo/templates/checkin/newindex.html +++ b/servo/templates/checkin/newindex.html @@ -5,7 +5,6 @@ {% block main %} - -- cgit v1.2.3