1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for formIsChanged

This commit is contained in:
Hillel Coren 2016-10-25 20:27:24 +03:00
parent 87c65c3453
commit 51b8cc288f

View File

@ -900,7 +900,7 @@
if (!model.invoice().custom_value2()) model.invoice().custom_value2('');
ko.applyBindings(model);
onItemChange();
onItemChange(true);
$('#country_id').combobox().on('change', function(e) {
@ -1501,7 +1501,7 @@
}
}
function onItemChange()
function onItemChange(silent)
{
var hasEmpty = false;
for(var i=0; i<model.invoice().invoice_items().length; i++) {
@ -1515,8 +1515,10 @@
model.invoice().addItem();
}
if (!silent) {
NINJA.formIsChanged = true;
}
}
function onPartialChange()
{