Fix customer field focus in register screen

This commit is contained in:
jekkos-t520
2014-11-26 08:25:45 +01:00
parent b311eca62e
commit 6bd6080ccc

View File

@@ -422,7 +422,8 @@ $(document).ready(function()
$('#item, #customer').focus(function()
{
if ($(this).val() == "<?php echo $this->lang->line('sales_start_typing_item_name'); ?>")
if ($(this).val().match("<?php echo $this->lang->line('sales_start_typing_item_name') . '|' .
$this->lang->line('sales_start_typing_customer_name'); ?>"))
{
$(this).val('');
}