Added clear button on operation edit field.
This commit is contained in:
@ -87,6 +87,10 @@ var ListViewModel = function() {
|
||||
$("#operation_date").datepicker({format: "yyyy-mm-dd"}).on('changeDate', function(ev){
|
||||
self.selectedItem().operation_date(new Date(ev.date.valueOf()));
|
||||
});
|
||||
|
||||
$("#operation_date_clear").click(function(e){
|
||||
self.selectedItem().operation_date(null);
|
||||
});
|
||||
};
|
||||
|
||||
self.cancel = function() {
|
||||
@ -122,6 +126,10 @@ var ListViewModel = function() {
|
||||
$("#operation_date").datepicker({format: "yyyy-mm-dd"}).on('changeDate', function(ev){
|
||||
self.selectedItem().operation_date(new Date(ev.date.valueOf()));
|
||||
});
|
||||
|
||||
$("#operation_date_clear").click(function(e){
|
||||
self.selectedItem().operation_date(null);
|
||||
});
|
||||
};
|
||||
|
||||
self.save = function() {
|
||||
|
Reference in New Issue
Block a user