mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
125bd09faf
Now with whitespace cleanup.
42 lines
980 B
JavaScript
42 lines
980 B
JavaScript
function setupGroup(facet){
|
|
if (facet == "details"){
|
|
setupGroupDetails();
|
|
}else{
|
|
setupGroupSearch();
|
|
}
|
|
}
|
|
|
|
function setupGroupDetails(){
|
|
|
|
$('#search').css("visibility","hidden");
|
|
$('#content').css("visibility","visible");
|
|
$('#content').load("group-details.inc");
|
|
|
|
sampleData = "sampledata/groupshow.json";
|
|
}
|
|
|
|
function setupGroupSearch(){
|
|
|
|
var columns = [
|
|
{title:"Group Name", column:"cn",render: function(current,cell){
|
|
renderDetailColumn(current,cell,current[this.column],"group");
|
|
}},
|
|
{title:"GID", column:"gidnumber",render: renderSimpleColumn},
|
|
{title:"Description", column:"description",render: renderSimpleColumn}
|
|
];
|
|
|
|
var groupSearchForm = new SearchForm("group", "find", columns);
|
|
|
|
$("#query").unbind();
|
|
$("#query").click(function(){
|
|
sampleData = "sampledata/grouplist.json";
|
|
executeSearch(groupSearchForm);
|
|
});
|
|
$("#new").unbind();
|
|
$("#new").click( function() {
|
|
alert("New Group...");
|
|
});
|
|
|
|
|
|
}
|