From 51b8cc288f3c58b42884ab85b51a912c560cc9b4 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 25 Oct 2016 20:27:24 +0300 Subject: [PATCH] Fix for formIsChanged --- resources/views/invoices/edit.blade.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index bb2c0b5c665e..dac854629f01 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -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