cockpit/js/instance.js in cpee-1.3.211 vs cockpit/js/instance.js in cpee-1.3.212
- old
+ new
@@ -54,14 +54,13 @@
'events' + '=' + 'error,change' + '&' +
'topic' + '=' + 'handlers' + '&' +
'events' + '=' + 'change';// }}}
$(document).ready(function() {// {{{
- console.log(location.protocol);
if (location.protocol.match(/^file/)) {
$("input[name=base-url]").val("http://localhost:" + $('body').data('defaultport'));
} else {
- $("input[name=base-url]").val(location.protocol + "//" + location.host + ":" + $('body').data('defaultport'));
+ $("input[name=base-url]").val(location.protocol + "//" + location.hostname + ":" + $('body').data('defaultport'));
}
$("button[name=base]").click(function(){ create_instance(null,false); });
$("button[name=instance]").click(function(){ ui_activate_tab("#tabinstance"); monitor_instance(false,false); });
$("button[name=loadtestset]").click(function(e){new CustomMenu(e).menu($('#predefinedtestsets'),function(){ load_testset(false) } ); });
$("button[name=loadtestsetfile]").click(load_testsetfile);