1 var opencloud_data = [];
2 var opencloud_data_received = false;
4 function updateOpenCloud(onLoaded) {
5 $.ajax({url: "/admin/shelldata",
8 success: function(data) {
10 if (!opencloud_data_received) {
11 opencloud_data_received = true;
16 // do this again in 30 seconds
17 setTimeout(function() {updateOpenCloud(onLoaded)}, 10000);
20 console.log("something went wrong. trying again");
21 // do this again in 30 seconds
22 setTimeout(function() {updateOpenCloud(onLoaded)}, 10000);
28 this.listAll = function() { return opencloud_data["slices"] }
29 this.__str__ = function() { return '["listAll"]'; }
32 function OpenCloud() {
33 this.slices = new Slices()
34 this.__str__ = function() { return '["slices"]'; }