This commit is contained in:
2018-01-10 14:09:34 +01:00
parent d1de2210e6
commit 6366bbc6a8
19 changed files with 776 additions and 162 deletions
+5 -13
View File
@@ -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 );
} );