Fix refresh on focusout (#1351, #1328)

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

No files matched your search

+1 -1
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
+1 -1
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();
});
+1 -1
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()
});