From fe14180ec5cd975cf77b0d33428c9d835e0d2ddd Mon Sep 17 00:00:00 2001 From: flodef Date: Fri, 14 Nov 2014 22:30:16 +0100 Subject: [PATCH] Update register.php - Remove unused variable : $cur_item_info - Change .click for .focus : correct a bug when the text doesn't disappear on chrome after changing tab --- application/views/sales/register.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/views/sales/register.php b/application/views/sales/register.php index 4b93040ca..8b3e76ce0 100644 --- a/application/views/sales/register.php +++ b/application/views/sales/register.php @@ -86,7 +86,6 @@ else { foreach(array_reverse($cart, true) as $line=>$item) { - $cur_item_info = $this->Item->get_info($item['item_id']); echo form_open("sales/edit_item/$line"); ?> @@ -407,7 +406,7 @@ $(document).ready(function() $(this).attr('value',"lang->line('sales_start_typing_item_name'); ?>"); }); - $('#item,#customer').click(function() + $('#item,#customer').focus(function() { $(this).attr('value',''); });