projecten
This commit is contained in:
@@ -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 );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user