From f819bc0c909dd85c4d98c8fb870ce5c6fce37383 Mon Sep 17 00:00:00 2001 From: Loic GUEGAN Date: Wed, 4 May 2016 18:50:28 +0200 Subject: Add machine creation overlay --- client/js/controllers/home/machineCreation.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client/js/controllers/home/machineCreation.js (limited to 'client/js/controllers/home/machineCreation.js') diff --git a/client/js/controllers/home/machineCreation.js b/client/js/controllers/home/machineCreation.js new file mode 100644 index 0000000..11315dd --- /dev/null +++ b/client/js/controllers/home/machineCreation.js @@ -0,0 +1,16 @@ +/** + * The home controller + * + * @param {$scope} $scope The $scope service from angular + */ +mainApp.controller('machineCreationCtrl', ['$scope', 'Compute', '$rootScope', '$timeout', 'Identity', function ($scope, Compute, $rootScope, $timeout, Identity) + { + + + $scope.name = "loic" + // When we need to show details of machine + $scope.$on('showMachineCreationEvent', function (eventName) { + $('#machineCreationModal').modal({backdrop: false, keyboard: true}); + }); + + }]); -- cgit v1.2.3