cockpit/js/ui.js in cpee-1.3.228 vs cockpit/js/ui.js in cpee-1.3.230

- old
+ new

@@ -18,12 +18,14 @@ $.ajax({ url: "config.json", success: function(res){ $("input[name=repo-url]").val(res['repo-url']); $("input[name=base-url]").val(res['base-url']); + $("body").attr('current-testsets',res['testsets-url']); cockpit(); }, error: function(){ + $("body").attr('current-testsets','testsets/'); if (location.protocol.match(/^file/)) { $("input[name=base-url]").val("http://localhost:" + $('body').data('base-port')); $("input[name=repo-url]").val("http://localhost:" + $('body').data('res-port')); } else { $("input[name=base-url]").val(location.protocol + "//" + location.hostname + ":" + $('body').data('base-port'));