summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index fb87c8993..c32606593 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -59,6 +59,8 @@ IPA.widget = function(spec) {
that.metadata = spec.metadata;
+ that.priority = spec.priority;
+
that.values = [];
that.dirty = false;
that.valid = true;
@@ -290,6 +292,17 @@ IPA.widget = function(spec) {
that.update = function() {
};
+ that.get_update_info = function() {
+
+ var update_info = IPA.update_info_builder.new_update_info();
+ if(that.is_dirty()) {
+ update_info.fields.push(IPA.update_info_builder.new_field_info(
+ that,
+ that.save()));
+ }
+ return update_info;
+ };
+
/**
* This function saves the values entered in the UI.
* It returns the values in an array, or null if
@@ -2140,4 +2153,4 @@ IPA.html_util = function() {
};
return that;
-}();
+}(); \ No newline at end of file