Dixsie Wolmers | bea45d5 | 2019-09-27 15:49:01 -0500 | [diff] [blame] | 1 | /** |
| 2 | * Controller for kvm window |
| 3 | * |
| 4 | * @module app/serverControl |
| 5 | * @exports kvmWindowController |
| 6 | * @name kvmWindowController |
| 7 | */ |
| 8 | |
| 9 | window.angular && (function(angular) { |
| 10 | 'use strict'; |
| 11 | angular.module('app.serverControl').controller('kvmWindowController', [ |
| 12 | '$scope', '$window', 'dataService', |
| 13 | function($scope, $window, dataService) { |
| 14 | $scope.dataService = dataService; |
| 15 | dataService.showNavigation = false; |
| 16 | dataService.bodyStyle = {background: 'white'}; |
| 17 | |
| 18 | $scope.close = function() { |
| 19 | $window.close(); |
| 20 | if (rfb) { |
| 21 | rfb.disconnect(); |
| 22 | } |
| 23 | }; |
| 24 | } |
| 25 | ]); |
| 26 | })(angular); |