summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-02-07 23:02:43 -0500
committerAdam Young <ayoung@redhat.com>2011-02-11 15:04:31 -0500
commit6f6d50f37f21db2a5591fa44c962eea04b82f596 (patch)
tree906b835cf90afc05b7ccfec53d2c4df34b12dccc /install/ui/widget.js
parent3ac3130fc9daf853368947b268d9af4b8a67d247 (diff)
downloadfreeipa-6f6d50f37f21db2a5591fa44c962eea04b82f596.tar.gz
freeipa-6f6d50f37f21db2a5591fa44c962eea04b82f596.tar.xz
freeipa-6f6d50f37f21db2a5591fa44c962eea04b82f596.zip
target section without radio buttons ACI target section refactored into an array of widget-like objects. The radio buttons have been replaced by a select box. THe select is not visible on the details page.
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js24
1 files changed, 11 insertions, 13 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index eb2f70cfc..1bff1579d 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -59,6 +59,7 @@ IPA.widget = function(spec) {
that.validate_input = spec.validate_input || validate_input;
that.valid = true;
that.param_info = spec.param_info;
+ that.values = [];
that.__defineGetter__("entity_name", function(){
return that._entity_name;
@@ -220,26 +221,25 @@ IPA.widget = function(spec) {
};
that.create_undo = function(container) {
- $('<span/>', {
- name: 'undo',
- style: 'display: none;',
- 'class': 'ui-state-highlight ui-corner-all undo',
- html: 'undo'
- }).appendTo(container);
+ that.undo_span =
+ $('<span/>', {
+ name: 'undo',
+ style: 'display: none;',
+ 'class': 'ui-state-highlight ui-corner-all undo',
+ html: 'undo'
+ }).appendTo(container);
};
that.get_undo = function() {
- return $('span[name="undo"]', that.container);
+ return $(that.undo_span);
};
that.show_undo = function() {
- var undo = that.get_undo();
- undo.css('display', 'inline');
+ $(that.undo_span).css('display', 'inline');
};
that.hide_undo = function() {
- var undo = that.get_undo();
- undo.css('display', 'none');
+ $(that.undo_span).css('display', 'none');
};
that.get_error_link = function() {
@@ -876,9 +876,7 @@ IPA.select_widget = function(spec) {
that.create_undo(container);
}
};
-
that.setup = function(container) {
-
that.widget_setup(container);
that.select = $('select[name="'+that.name+'"]', that.container);