Fixed new entry cleaning and edit cancel.
This commit is contained in:
parent
2dd63339f3
commit
e4e74eea9f
BIN
src/html/js/.entries.js.swp
Normal file
BIN
src/html/js/.entries.js.swp
Normal file
Binary file not shown.
@ -351,6 +351,7 @@ var ListViewModel = function() {
|
|||||||
self.newEntry().label(null);
|
self.newEntry().label(null);
|
||||||
self.newEntry().value(null);
|
self.newEntry().value(null);
|
||||||
self.newEntry().account_id(self.account().id()); // account_id should not change, but just in case...
|
self.newEntry().account_id(self.account().id()); // account_id should not change, but just in case...
|
||||||
|
self.newEntry().category(null);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Function to cancel current editing.
|
// Function to cancel current editing.
|
||||||
@ -363,6 +364,7 @@ var ListViewModel = function() {
|
|||||||
self.selectedItem().label(self.savedItem.label);
|
self.selectedItem().label(self.savedItem.label);
|
||||||
self.selectedItem().value(self.savedItem.value);
|
self.selectedItem().value(self.savedItem.value);
|
||||||
self.selectedItem().account_id(self.savedItem.account_id); // account_id should not change, but just in case...
|
self.selectedItem().account_id(self.savedItem.account_id); // account_id should not change, but just in case...
|
||||||
|
self.selectedItem().category(self.savedItem.category);
|
||||||
}
|
}
|
||||||
|
|
||||||
// We are cancelling the new entry, just reset it.
|
// We are cancelling the new entry, just reset it.
|
||||||
|
Loading…
Reference in New Issue
Block a user