Wijzigingen nav opmerking Peter 24-12-2018
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user