Tet
This commit is contained in:
parent
4daec471a3
commit
b0d79adc8e
2 changed files with 8 additions and 4 deletions
|
@ -9,6 +9,10 @@ mainApp.controller('homeCtrl', ['$scope', 'Compute', '$rootScope', 'Loading', 'I
|
|||
$rootScope.$broadcast("showMachineCreationEvent", Compute.getData().axioms);
|
||||
};
|
||||
var displayMachine = function () {
|
||||
|
||||
|
||||
|
||||
|
||||
var machineNames = [];
|
||||
var i = 0;
|
||||
$.each(Compute.getData().machines, function () {
|
||||
|
@ -43,8 +47,8 @@ mainApp.controller('homeCtrl', ['$scope', 'Compute', '$rootScope', 'Loading', 'I
|
|||
}, joint.shapes.basic.Rect.prototype.defaults)
|
||||
});
|
||||
|
||||
var graph = new joint.dia.Graph;
|
||||
var paper = new joint.dia.Paper({
|
||||
var graph = new joint.dia.Graph;
|
||||
var paper = new joint.dia.Paper({
|
||||
el: $('#graphHolder'),
|
||||
width: $('#graphHolder').width(),
|
||||
//height: test.height,
|
||||
|
@ -138,7 +142,7 @@ mainApp.controller('homeCtrl', ['$scope', 'Compute', '$rootScope', 'Loading', 'I
|
|||
|
||||
// On user login
|
||||
$scope.$on('updateGraphEvent', function () {
|
||||
// call update graph
|
||||
displayMachine()
|
||||
});
|
||||
//Return a new link linking the parent and child elements with the interfaces names given in parameters
|
||||
function makeLink(parentElementLabel, childElementLabel, Iparent, Ichild) {
|
||||
|
|
|
@ -15,7 +15,7 @@ mainApp.controller('machineCreationCtrl', ['$scope', 'Compute', '$rootScope', '$
|
|||
});
|
||||
|
||||
var callMeAfterMachineCreation=function(response){
|
||||
Compute.pullData(function(){});
|
||||
Compute.pullData(function(){$rootScope.$broadcast("updateGraphEvent")});
|
||||
};
|
||||
|
||||
$scope.createMachine = function () {
|
||||
|
|
Loading…
Add table
Reference in a new issue