diff options
author | Adam Coldrick <adam@sotk.co.uk> | 2015-09-26 16:20:54 +0100 |
---|---|---|
committer | Adam Coldrick <adam@sotk.co.uk> | 2015-09-28 20:22:03 +0100 |
commit | 5e55c3ef2d8afad59bf789d8de8d4a725baf6b40 (patch) | |
tree | 9cf8af2462591ee7e526e9c60b83fb9cdbb78ff9 | |
parent | c30ffe08daaa0112c0afdab75366f25822bd5407 (diff) | |
download | ciat-ui-5e55c3ef2d8afad59bf789d8de8d4a725baf6b40.tar.gz |
FIXME: Do something
-rw-r--r-- | js/main.js | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -6,18 +6,14 @@ app.config(['$httpProvider', function($httpProvider) { } ]); -app.controller('VisualisationController', ['$scope', '$http', '$interval', - function($scope, $http, $interval) { - function formatBuild(response) { - var success = false; - if (response.data.text) { - if (response.data.text.indexOf('successful') > -1) { - success = true; +app.controller('VisualisationController', function($scope, $http, $q) { + function checkInArray(array, key) { + if (array) { + if (array.indexOf(key) > -1) { + return true; } } - return { - success: success - }; + return False; } function load() { |