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

- old
+ new

@@ -16,17 +16,20 @@ }); } else { $.ajax({ url: "config.json", success: function(res){ + $("input[name=repo-url]").val(res['repo-url']); $("input[name=base-url]").val(res['base-url']); cockpit(); }, error: function(){ if (location.protocol.match(/^file/)) { - $("input[name=base-url]").val("http://localhost:" + $('body').data('defaultport')); + $("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('defaultport')); + $("input[name=base-url]").val(location.protocol + "//" + location.hostname + ":" + $('body').data('base-port')); + $("input[name=repo-url]").val(location.protocol + "//" + location.hostname + ":" + $('body').data('res-port')); } cockpit(); } }); }