mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 08:00:02 -06:00
125bd09faf
Now with whitespace cleanup.
39 lines
904 B
JavaScript
39 lines
904 B
JavaScript
function setupHost(facet){
|
|
if (facet == "details"){
|
|
setupHostDetails();
|
|
}else{
|
|
setupHostSearch();
|
|
}
|
|
}
|
|
|
|
function setupHostDetails(){
|
|
var detailsForm = new DetailsForm();
|
|
}
|
|
|
|
function setupHostSearch(){
|
|
|
|
sampleData = "sampledata/hostlist.json";
|
|
var columns = [
|
|
{title:"Host",column:"fqdn",render: function(current,cell){
|
|
renderDetailColumn(current,cell,current[this.column],"group");
|
|
}},
|
|
{title:"Comment", column: "description", render: renderSimpleColumn},
|
|
{title:"Enrolled?", render: renderUnknownColumn},
|
|
{title:"Manages?", render: renderUnknownColumn}
|
|
];
|
|
|
|
var hostSearchForm = new SearchForm("host", "find", columns);
|
|
|
|
$("#query").unbind();
|
|
$("#query").click(function(){
|
|
sampleData = "sampledata/hostlist.json";
|
|
executeSearch(hostSearchForm);
|
|
});
|
|
|
|
$("#new").unbind();
|
|
$("#new").click( function() {
|
|
alert("New Host...");
|
|
});
|
|
|
|
}
|