$ (function () {
Menu Hide Expand
var tabs_i=-1;
Displayprogress ();
$.ajax ({
Type: ' Post ',
URL: "${basepath}/emsconfigaction/getinslist.action",
DataType: ' JSON ',
Success:function (data) {
Undisplayprogress ();
Placeholder template matching is implemented here
$ ("#vbrasDiv"). HTML ("");
var template = $.templates ("#insTpl");
var htmloutput = template.render (data);
Insert template content in div
$ ("#vbrasDiv"). HTML (htmloutput);
/*//default Select First
$.each (Data,function (I,item) {
if (i==0) {
$ ("#insDiv" +item.insid). AddClass ("Select_li on");
}
}) */;
Querying the Vbarss under the current instance
$ ('. Vtitle '). Click (function () {
var insId = $ (this). attr ("id"). Replace ("Insdiv", "" ");
var ipaddr = $ (this). attr ("name");
If this instance has not been loaded, the bras information is loaded
if ($ ("#insMenu" +insid). Text () = = ') {
Displayprogress ();
Querying the Vbars of the selected instance
$.ajax ({
Type: ' Post ',
URL: "${basepath}/emsconfigaction/getvbras.action",
data:{
Ipaddress:ipaddr
},
DataType: ' JSON ',
Success:function (data) {
Undisplayprogress ();
$ ("#insMenu" +insid). HTML ("");
var template = $.templates ("#vbrasTpl");
var htmloutput = template.render (data);
$ ("#insMenu" +insid). HTML (htmloutput);
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.