Wijzigingen nav opmerking Peter 24-12-2018

This commit is contained in:
2019-01-02 16:57:41 +01:00
parent 9569522c83
commit efcd9f2c09
19 changed files with 201 additions and 44 deletions
@@ -7,6 +7,7 @@
dbo.offersInit = function () {
var timeout;
if ( dbo.offersModel !== undefined ) {
@@ -21,6 +22,9 @@ dbo.offersInit = function () {
documents : ko.observableArray( [] ),
selectedRowID: ko.observable(),
projectID : 0,
search : ko.observable(''),
order : ko.observable('offernumber'),
direction : ko.observable(),
init: function () {
var service = dbo.offersService;
@@ -29,6 +33,23 @@ dbo.offersInit = function () {
service.refreshOffers();
},
searchOffers: function () {
var service = dbo.offersService;
if ( timeout ) {
clearTimeout( timeout );
timeout = null;
}
timeout = setTimeout( function () {
service.refreshOffers();
}, 700 );
},
directionOrderOffers : function(field){
var service = dbo.offersService;
service.directionOrderOffers(field);
},
newOffer: function () {
var service = dbo.offersService;
service.vm = dbo.offersModel;