summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorApache <apache@localhost.localdomain>2016-03-16 11:11:25 +0100
committerApache <apache@localhost.localdomain>2016-03-16 11:11:25 +0100
commita2f120aa7350e9417e80db26abf36b7e53c3196b (patch)
tree991352de902f741bdf907a010098a88e5d3244cc
parent11dc33c440f97410a2358f7e615d2adc5e69f072 (diff)
Front-end path redefinition
-rw-r--r--client/js/app.js2
-rw-r--r--client/js/controllers/home/home.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/client/js/app.js b/client/js/app.js
index 1602e65..a26e0ec 100644
--- a/client/js/app.js
+++ b/client/js/app.js
@@ -24,7 +24,7 @@ mainApp.config(['$routeProvider', function($routeProvider){
templateUrl: 'partials/image/image.html',
controller: 'imageCtrl'
}).otherwise({
- redirectTo: '/home'
+ redirectTo: '/'
});
}]);
diff --git a/client/js/controllers/home/home.js b/client/js/controllers/home/home.js
index 4402e62..d20779b 100644
--- a/client/js/controllers/home/home.js
+++ b/client/js/controllers/home/home.js
@@ -22,17 +22,17 @@ mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', 'Loading','I
}
}
-
+
Image.getImages(function(){});
-
+
$scope.raiseShowMachineDetailsEvent=function(id){
var callback=function(){
Loading.stop();
var data=Compute.getData();
$rootScope.$broadcast("showMachineDetailsEvent", data.machines[id], data.axioms);
-
+
}
Loading.start();
Compute.pullMachines(callback);