summaryrefslogtreecommitdiffstats
path: root/install/static/hostgroup.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/static/hostgroup.js')
-rw-r--r--install/static/hostgroup.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/install/static/hostgroup.js b/install/static/hostgroup.js
index 2f40f0b3f..3872d125d 100644
--- a/install/static/hostgroup.js
+++ b/install/static/hostgroup.js
@@ -12,14 +12,6 @@ var hostgroupFacets = ["details","hosts","assignhosts"];
-function hostgroupAddOptionsFunction (){
- var options = {
- name: $('#pkey').val(),
- description: $('#description').val()
- };
- return options;
-}
-
var hostgroupForms = new HostgroupsForms();
function HostgroupsForms(){
@@ -75,7 +67,15 @@ function HostgroupsForms(){
this.details = new DetailsForm("hostgroup",hostgroup_details_list,"cn",hostgroupFacets) ;
- this.add = new EntityBuilder("hostgroup",this.hostgroupAddProperties,hostgroupAddOptionsFunction);
+ this.add = new EntityBuilder("hostgroup",this.hostgroupAddProperties);
+
+ this.add.getOptions = function() {
+ var options = {
+ name: $('#pkey').val(),
+ description: $('#description').val()
+ };
+ return options;
+ }
this.search = new SearchForm("hostgroup", "find", this.hostgroupSearchColumns);
this.unspecified = this.search;