37 lines
811 B
JavaScript
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' ) );
|
|
}
|
|
}; |