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

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