Adds a modal help
This commit is contained in:
@@ -1,5 +1,20 @@
|
||||
angular.module('satbd.satellite.bar', ['ui.bootstrap']);
|
||||
angular.module('satbd.satellite.bar', ['ui.bootstrap','ngAnimate']);
|
||||
|
||||
angular.module('satbd.satellite.bar').controller('NavbarCollapse', function ($scope) {
|
||||
angular.module('satbd.satellite.bar').controller('NavbarCollapseCtrl', function ($scope, $uibModal) {
|
||||
$scope.isCollapsed = true;
|
||||
$scope.openModal = function (size) {
|
||||
var modalInstance = $uibModal.open({
|
||||
templateUrl: 'help.html',
|
||||
controller: 'HelpInstanceCtrl',
|
||||
size: size,
|
||||
keyboard: true,
|
||||
});
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
angular.module('satbd.satellite.bar').controller('HelpInstanceCtrl', function($scope, $uibModalInstance) {
|
||||
$scope.ok = function () {
|
||||
$uibModalInstance.close('');
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user