little JS code update to support graphics view for RMC monitoring
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4092 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ec8d33c3e7
commit
3048fc50b2
@ -507,14 +507,31 @@ function monsetupAction(plugin, action_val)
|
||||
|
||||
});
|
||||
}
|
||||
function show_monshow_data() {
|
||||
//used for the OK button in the web page "rmc_monshow.php";
|
||||
$("#monshow_opt").hide("slow");
|
||||
$(":input[@checked]").each(function(i) {
|
||||
$.get("monitor/rmc_monshow_data_source.php", {value: $(this).attr("value")}, function(data) {
|
||||
$("#monshow_data").append(data);
|
||||
|
||||
function show_monshow_graph() {
|
||||
//used for the "view by graph" button in the web page "rmc_monshow.php"
|
||||
if($(":input[@checked]").size() != 0) {
|
||||
$("#monshow_data").empty();
|
||||
$("#monshow_opt").hide("slow");
|
||||
$(":input[@checked]").each(function(i) {
|
||||
//generate graphics for all the attributes in "checked" status
|
||||
});
|
||||
});
|
||||
} else {
|
||||
}
|
||||
}
|
||||
function show_monshow_text() {
|
||||
//used for the "view by text" button in the web page "rmc_monshow.php";
|
||||
if($(":input[@checked]").size() != 0) {
|
||||
$("#monshow_data").empty();
|
||||
$("#monshow_opt").hide("slow");
|
||||
$(":input[@checked]").each(function(i) {
|
||||
$.get("monitor/rmc_monshow_data_source.php", {value: $(this).attr("value")}, function(data) {
|
||||
$("#monshow_data").append(data);
|
||||
});
|
||||
});
|
||||
} else {
|
||||
$("#monshow_data").html("<p><b>Please select one or more attributes from the table</b></p>");
|
||||
}
|
||||
}
|
||||
|
||||
function rmc_monshow_back_to_opts() {
|
||||
|
Loading…
Reference in New Issue
Block a user