Files
dbois/public/js/lib/modules/beheer/authorisationModule.js
T
2018-07-14 16:56:42 +02:00

37 lines
811 B
JavaScript

/**
* Created by Pensare Software.
* User: Theo Weijmer
* Date: 20/06/2018
* Time: 14:11
*/
dbo.authorisationInit = function () {
if ( dbo.authorisationModel !== undefined ) {
} else {
dbo.authorisationModel = {
roles : ko.observableArray([]) ,
init: function () {
var self = dbo.authorisationModel;
self.refreshPageAuthorisations();
},
refreshPageAuthorisations: function () {
dbo.authorisationDataService.getRoleAuthorisations( function ( data ) {
console.log( data );
} );
}
};
dbo.authorisationModel.init();
ko.applyBindings( dbo.authorisationModel, document.getElementById( 'AUTHORISATION' ) );
}
};