From 6bd6080ccc749c6b5bdcd471a0369e918aa7ef40 Mon Sep 17 00:00:00 2001 From: jekkos-t520 Date: Wed, 26 Nov 2014 08:25:45 +0100 Subject: [PATCH] Fix customer field focus in register screen --- application/views/sales/register.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/views/sales/register.php b/application/views/sales/register.php index 10d70e6b1..173ce083a 100644 --- a/application/views/sales/register.php +++ b/application/views/sales/register.php @@ -422,7 +422,8 @@ $(document).ready(function() $('#item, #customer').focus(function() { - if ($(this).val() == "lang->line('sales_start_typing_item_name'); ?>") + if ($(this).val().match("lang->line('sales_start_typing_item_name') . '|' . + $this->lang->line('sales_start_typing_customer_name'); ?>")) { $(this).val(''); }