summaryrefslogtreecommitdiffstats
path: root/install/static/netgroup.js
blob: 0ff5eabf8893f033a0c0157a6cc7754dcaa8a3d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
function setupNetgroup(facet){
    if (facet == "details"){
	setupNetgroupDetails();
    }else{
	setupNetgroupSearch();
    }
}




function setupNetgroupDetails(){
    var detailsForm = new DetailsForm();
}


function setupNetgroupSearch(){


    var columns = [
	{title:"Netgroup",column:"cn",render:  function(current,cell){
	    renderDetailColumn(current,cell,current[this.column],"netgroup");
	}},
	{title:"Description", column:"description",render: renderSimpleColumn}];

    var netgroupSearchForm = new SearchForm("netgroup", "find", columns);

    $("#query").unbind();
    $("#query").click(function(){
	sampleData = "sampledata/netgrouplist.json";
	executeSearch(netgroupSearchForm);
    });
    $("#new").unbind();
    $("#new").click( function() {
	alert("New Netgroup...");
    });


}