+ // Get testbeds with sla and store them in localStorage
+ //this.get_testbeds_with_sla();
+
+ },
+
+ get_testbeds_with_sla: function () {
+ return $.get('/sla/testbeds/', function(data) {
+ if (typeof(Storage) !== "undefined") {
+ if (!localStorage.getItem("sla_testbeds")) {
+ var testbeds = data;
+ localStorage.setItem("sla_testbeds", testbeds);
+ }
+ }
+ });