Fix refresh on focusout (#1351, #1328)

This commit is contained in:
jekkos
2017-06-20 22:39:32 +02:00
parent 0d82db42da
commit 5d22e41fe2
3 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ class MY_Lang extends CI_Lang
}
else
{
if(!empty($this->language[$line] || strstr($line, 'common_you_are_using')))
if(isset($this->language[$line]) && $this->language[$line] != '')
{
$line = $this->language[$line];
//if the line exists and more function arguments remain

View File

@@ -517,7 +517,7 @@ $(document).ready(function()
}
}
$('[name="price"],[name="quantity"],[name="discount"],[name="description"],[name="serialnumber"]').focusout(function() {
$('[name="price"],[name="quantity"],[name="discount"],[name="description"],[name="serialnumber"]').change(function() {
var index = $(this).parents("tr").index() - 1;
$("#cart_" + index).submit();
});

View File

@@ -770,7 +770,7 @@ $(document).ready(function()
}
}
$('[name="price"],[name="quantity"],[name="discount"],[name="description"],[name="serialnumber"]').focusout(function() {
$('[name="price"],[name="quantity"],[name="discount"],[name="description"],[name="serialnumber"]').change(function() {
$(this).parents("tr").prevAll("form:first").submit()
});