Error Correction
This commit is contained in:
parent
4b978d4584
commit
d24d569f1c
2 changed files with 215 additions and 221 deletions
|
@ -31,11 +31,6 @@ mainApp.controller('homeCtrl', ['$scope', 'Compute', '$rootScope', 'Loading', 'I
|
||||||
tryToRetrieveData();
|
tryToRetrieveData();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$scope.raiseShowMachineCreationEvent = function () {
|
|
||||||
$rootScope.$broadcast("showMachineCreationEvent", Compute.getData().axioms);
|
|
||||||
};
|
|
||||||
|
|
||||||
// Function to call from view to display the details of a machine
|
// Function to call from view to display the details of a machine
|
||||||
$scope.raiseShowMachineDetailsEvent = function (id) {
|
$scope.raiseShowMachineDetailsEvent = function (id) {
|
||||||
|
|
||||||
|
@ -200,9 +195,7 @@ mainApp.controller('homeCtrl', ['$scope', 'Compute', '$rootScope', 'Loading', 'I
|
||||||
function makeElement(vm) {
|
function makeElement(vm) {
|
||||||
var label = vm[0];
|
var label = vm[0];
|
||||||
|
|
||||||
var maxLineLength = _.max(label.split('\n'), function (l) {
|
var maxLineLength = _.max(label.split('\n'), function(l) { return l.length; }).length;
|
||||||
return l.length;
|
|
||||||
}).length;
|
|
||||||
|
|
||||||
// Compute width/height of the rectangle based on the number
|
// Compute width/height of the rectangle based on the number
|
||||||
// of lines in the label and the letter size. 0.6 * letterSize is
|
// of lines in the label and the letter size. 0.6 * letterSize is
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"require": {
|
"require": {
|
||||||
"php-opencloud/openstack": "dev-master"
|
"php-opencloud/openstack": "dev-master",
|
||||||
|
"phpdocumentor/phpdocumentor": "2.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue