mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 08:00:02 -06:00
125bd09faf
Now with whitespace cleanup.
40 lines
801 B
JavaScript
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...");
|
|
});
|
|
|
|
|
|
}
|