13 lines
439 B
JavaScript
13 lines
439 B
JavaScript
app.controller('JournalsController', ['$scope', '$http', '$routeParams', 'auth', 'common', function($scope, $http, $routeParams, auth, common){
|
|
common.init({
|
|
id: $routeParams.id,
|
|
scope: $scope,
|
|
type: 'journal_for_messages',
|
|
replyType: 'JournalsForMessage',
|
|
loadCallback: function(data){
|
|
$scope.message = data.data;
|
|
},
|
|
replyCallback: function(){
|
|
}
|
|
});
|
|
}]); |