freeipa/install/static/netgroup.js
Adam Young 125bd09faf The Javascript code for the new web UI
Now with whitespace cleanup.
2010-08-06 11:55:38 -04:00

40 lines
801 B
JavaScript

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...");
});
}