X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fsladialog%2Fstatic%2Fjs%2Fsladialog.js;h=01eb0afd3f87b3628684b8ce3aeb6931bc5ab44d;hb=deee82377a1f72626cede01fdfec5e9d7cc274ce;hp=8ea38dc525dae53d7c2be5409eabe35875f5db94;hpb=f53df6493de6aa133220ea102b1ce42a3df87d11;p=myslice.git diff --git a/plugins/sladialog/static/js/sladialog.js b/plugins/sladialog/static/js/sladialog.js index 8ea38dc5..01eb0afd 100644 --- a/plugins/sladialog/static/js/sladialog.js +++ b/plugins/sladialog/static/js/sladialog.js @@ -27,12 +27,11 @@ this.listen_query(options.query_uuid); /* GUI setup and event binding */ - - // call function - this.button_binding(); - // Get testbeds with sla and store them in localStorage this.get_testbeds_with_sla(); + + // call function + //this.button_binding(); }, get_testbeds_with_sla: function () { @@ -46,41 +45,44 @@ } }).done(function(data) { self.get_sla_templates(data); - alert("sla templates recovered: " + data); }); }, get_sla_templates: function (testbeds) { + var self = this; testbeds.forEach(function(testbed, index, array) { - if(testbed!="omf:netmode") { return } // TODO: remove - - $.get('/sla/agreements/templates/' + testbed, function(slo) { - - $(".modal-body #sla_template").append(slo); - - var content = - "