Offers
This commit is contained in:
@@ -8,29 +8,21 @@
|
||||
dbo.offerDataService = {
|
||||
|
||||
getAllOffers: function ( archive = 'F', callback ) {
|
||||
$.getJSON( 'index.php/beheer/offersController/getAllOffers/' + archive )
|
||||
$.getJSON( 'index.php/projects/offersController/getAllOffers/' + archive )
|
||||
.done( function ( data ) {
|
||||
callback( data );
|
||||
} );
|
||||
},
|
||||
|
||||
getOffer: function ( userID, callback ) {
|
||||
$.getJSON( 'index.php/beheer/offersController/getOffer/' + userID )
|
||||
$.getJSON( 'index.php/projects/offersController/getOffer/' + userID )
|
||||
.done( function ( data ) {
|
||||
callback( data );
|
||||
} );
|
||||
},
|
||||
|
||||
checkOffername: function ( username, callback ) {
|
||||
$.post( 'index.php/beheer/userController/checkOffername', 'json' )
|
||||
.done( function ( data ) {
|
||||
console.log( data );
|
||||
callback( data );
|
||||
} );
|
||||
},
|
||||
|
||||
saveOffer: function ( submitDATA, callback ) {
|
||||
$.post( 'index.php/beheer/offersController/saveOffer', submitDATA, function () {
|
||||
$.post( 'index.php/projects/offersController/saveOffer', submitDATA, function () {
|
||||
}, 'json' )
|
||||
.done( function ( data ) {
|
||||
callback( data );
|
||||
@@ -38,14 +30,14 @@ dbo.offerDataService = {
|
||||
},
|
||||
|
||||
archiveOffer: function ( userID, status, callback ) {
|
||||
$.get( 'index.php/beheer/offersController/archiveOffer/' + userID + '/' + status )
|
||||
$.get( 'index.php/projects/offersController/archiveOffer/' + userID + '/' + status )
|
||||
.done( function () {
|
||||
callback();
|
||||
} );
|
||||
},
|
||||
|
||||
removeOffer: function ( userID, callback ) {
|
||||
$.getJSON( 'index.php/beheer/offersController/removeOffer/' + userID )
|
||||
$.getJSON( 'index.php/projects/offersController/removeOffer/' + userID )
|
||||
.done( function ( data ) {
|
||||
callback( data );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user