summaryrefslogtreecommitdiffstats
path: root/install/static/netgroup.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-08-06 10:01:44 -0400
committerAdam Young <ayoung@redhat.com>2010-08-06 11:55:38 -0400
commit125bd09faf21411fafda01e76989b4856bbd267c (patch)
treeb9e2ad70165154f95463f6a69dc5d62de5821f87 /install/static/netgroup.js
parenta63fd83e890ed4f2ec3f0cd0f96f0a329698796a (diff)
downloadfreeipa-125bd09faf21411fafda01e76989b4856bbd267c.tar.gz
freeipa-125bd09faf21411fafda01e76989b4856bbd267c.tar.xz
freeipa-125bd09faf21411fafda01e76989b4856bbd267c.zip
The Javascript code for the new web UI
Now with whitespace cleanup.
Diffstat (limited to 'install/static/netgroup.js')
-rw-r--r--install/static/netgroup.js39
1 files changed, 39 insertions, 0 deletions
diff --git a/install/static/netgroup.js b/install/static/netgroup.js
new file mode 100644
index 000000000..0ff5eabf8
--- /dev/null
+++ b/install/static/netgroup.js
@@ -0,0 +1,39 @@
+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...");
+ });
+
+
+}