mirror of https://github.com/akveo/blur-admin
parent
077c2765c0
commit
306dbec2fb
@ -0,0 +1 @@
|
||||
<h1>Subject:{{subject}}</h1>
|
@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @author a.demeshko
|
||||
* created on 24/12/15
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular.module('BlurAdmin.theme.components')
|
||||
.controller('composeBoxCtrl', composeBoxCtrl);
|
||||
|
||||
/** @ngInject */
|
||||
function composeBoxCtrl($scope, $uibModalInstance) {
|
||||
$scope.ok = function () {
|
||||
$uibModalInstance.close($scope.selected.item);
|
||||
};
|
||||
|
||||
$scope.cancel = function () {
|
||||
$uibModalInstance.dismiss('cancel');
|
||||
};
|
||||
}
|
||||
})();
|
@ -0,0 +1,28 @@
|
||||
/**
|
||||
* @author a.demeshko
|
||||
* created on 12/24/15
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular.module('BlurAdmin.theme')
|
||||
.service('composeModal', composeModal);
|
||||
|
||||
/** @ngInject */
|
||||
function composeModal($uibModal) {
|
||||
return {
|
||||
open : function(options){
|
||||
return $uibModal.open({
|
||||
animation: false,
|
||||
templateUrl: 'app/theme/components/composeBox/compose.html',
|
||||
controller: 'composeBoxCtrl',
|
||||
size: size,
|
||||
resolve: {
|
||||
subject : options.subject
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
})();
|
Loading…
Reference in new issue