mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 08:00:02 -06:00
125bd09faf
Now with whitespace cleanup.
36 lines
811 B
JavaScript
36 lines
811 B
JavaScript
function setupHostgroup(facet){
|
|
if (facet == "details"){
|
|
setupHostgroupDetails();
|
|
}else{
|
|
setupHostgroupSearch();
|
|
}
|
|
}
|
|
|
|
function setupHostgroupDetails(){
|
|
var detailsForm = new DetailsForm();
|
|
}
|
|
|
|
|
|
function setupHostgroupSearch(){
|
|
|
|
var columns = [
|
|
{title:"Hostgroup",column:"cn",render: function(current,cell){
|
|
renderDetailColumn(current,cell,current[this.column],"hostgroup");
|
|
}},
|
|
{title:"Description", column:"description",render: renderSimpleColumn}];
|
|
|
|
var hostgroupSearchForm = new SearchForm("hostgroup", "find", columns);
|
|
|
|
$("#query").unbind();
|
|
|
|
$("#query").click(function(){
|
|
sampleData = "sampledata/hostgrouplist.json";
|
|
executeSearch(hostgroupSearchForm);
|
|
});
|
|
$("#new").unbind();
|
|
$("#new").click( function() {
|
|
alert("New Hostgroup...");
|
|
});
|
|
|
|
}
|