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
This commit is contained in:
flodef
2014-11-14 22:30:16 +01:00
parent 46af17845f
commit fe14180ec5

View File

@@ -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");
?>
<tr>
@@ -407,7 +406,7 @@ $(document).ready(function()
$(this).attr('value',"<?php echo $this->lang->line('sales_start_typing_item_name'); ?>");
});
$('#item,#customer').click(function()
$('#item,#customer').focus(function()
{
$(this).attr('value','');
});