You've already forked haproxy-wi
mirror of
https://github.com/roxy-wi/roxy-wi.git
synced 2025-12-21 12:34:01 +08:00
@@ -758,7 +758,11 @@ $( function() {
|
||||
$( "#tabs" ).tabs();
|
||||
$( "select" ).selectmenu();
|
||||
|
||||
//$( "[title]" ).tooltip();
|
||||
$( "[title]" ).tooltip({
|
||||
"content": function(){
|
||||
return $(this).attr("data-help");
|
||||
}
|
||||
});
|
||||
$( "input[type=submit], button" ).button();
|
||||
$( "input[type=checkbox]" ).checkboxradio();
|
||||
$( ".controlgroup" ).controlgroup();
|
||||
@@ -1592,3 +1596,12 @@ function sendGet(page) {
|
||||
xmlHttp.open("GET", theUrl, true); // true for asynchronous
|
||||
xmlHttp.send(null);
|
||||
}
|
||||
function show_pretty_ansible_error(data) {
|
||||
try {
|
||||
data = data.split('error: ');
|
||||
var p_err = JSON.parse(data[1]);
|
||||
return p_err['msg'];
|
||||
} catch (e) {
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user