Commit f43043fb authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

tests button

parent f8f30cfe
......@@ -439,7 +439,13 @@ function init3(index){
$("#display_status").find("tr[ip=\'"+cam.ip+"\']").html($(status_str));
init_test_button();
}
function init_test_button(){
$("#system_tests").on('click',function(){
window.open('http://'+location.host+'/diagnostics/index.html?ip='+addrs_ips2str());
});
}
function refresh_previews(){
......@@ -587,6 +593,18 @@ function addrs_ips2addrs(){
}
}
function addrs_ips2str(){
var arr = [];
var str = "";
for(var i=0;i<cams.length;i++){
arr.push(cams[i].ip);
}
str = arr.join(",");
return str;
}
function addrs_ips2ta(){
var arr = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment