projecten

This commit is contained in:
2018-01-23 08:45:44 +01:00
parent 970aa53971
commit fb19c401fd
36 changed files with 1402 additions and 184 deletions
@@ -8,7 +8,7 @@
dbo.offerDataService = {
getAllOffers: function ( projectID, archive = 'F', callback ) {
$.getJSON( 'index.php/projects/offersController/getAllOffers/' + archive )
$.getJSON( 'index.php/projects/offersController/getAllOffers/' + projectID + '/' + archive )
.done( function ( data ) {
callback( data );
} );
@@ -29,15 +29,15 @@ dbo.offerDataService = {
} );
},
archiveOffer: function ( userID, status, callback ) {
$.get( 'index.php/projects/offersController/archiveOffer/' + userID + '/' + status )
archiveOffer: function ( offerID, status, callback ) {
$.get( 'index.php/projects/offersController/archiveOffer/' + offerID + '/' + status )
.done( function () {
callback();
} );
},
removeOffer: function ( userID, callback ) {
$.getJSON( 'index.php/projects/offersController/removeOffer/' + userID )
removeOffer: function ( offerID, callback ) {
$.getJSON( 'index.php/projects/offersController/removeOffer/' + offerID )
.done( function ( data ) {
callback( data );
} );