mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Remember discount type setting
This commit is contained in:
parent
ee0be053d7
commit
3c40cd460e
@ -876,7 +876,6 @@
|
||||
// load previous isAmountDiscount setting
|
||||
if (isStorageSupported()) {
|
||||
var lastIsAmountDiscount = parseInt(localStorage.getItem('last:is_amount_discount'));
|
||||
console.log('lastIsAmountDiscount: ' + lastIsAmountDiscount);
|
||||
if (lastIsAmountDiscount) {
|
||||
model.invoice().is_amount_discount(lastIsAmountDiscount);
|
||||
}
|
||||
|
@ -594,8 +594,7 @@ function InvoiceModel(data) {
|
||||
}
|
||||
|
||||
self.isAmountDiscountChanged = function(obj, event) {
|
||||
console.log('onIsAmountDiscountChange... ' + event.originalEvent);
|
||||
if (event.originalEvent) {
|
||||
if (! event.originalEvent) {
|
||||
return;
|
||||
}
|
||||
if (! isStorageSupported()) {
|
||||
|
Loading…
Reference in New Issue
Block a user