mirror of https://github.com/akveo/blur-admin
36 lines
821 B
JavaScript
36 lines
821 B
JavaScript
/**
|
|
* @author a.demeshko
|
|
* created on 12/24/15
|
|
*/
|
|
(function () {
|
|
'use strict';
|
|
|
|
angular.module('BlurAdmin.pages.components.mail')
|
|
.service('composeModal', composeModal);
|
|
|
|
/** @ngInject */
|
|
function composeModal($uibModal) {
|
|
this.open = function(options){
|
|
return $uibModal.open({
|
|
animation: false,
|
|
templateUrl: 'app/pages/components/mail/composeBox/compose.html',
|
|
controller: 'composeBoxCtrl',
|
|
controllerAs: 'boxCtrl',
|
|
size: 'slim',
|
|
resolve: {
|
|
subject: function () {
|
|
return options.subject;
|
|
},
|
|
to: function () {
|
|
return options.to;
|
|
},
|
|
text: function () {
|
|
return options.text;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
})(); |