summaryrefslogtreecommitdiffstats
path: root/install/ui/details.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/details.js')
-rw-r--r--install/ui/details.js20
1 files changed, 14 insertions, 6 deletions
diff --git a/install/ui/details.js b/install/ui/details.js
index 4f7e4a29a..dbdca5a1d 100644
--- a/install/ui/details.js
+++ b/install/ui/details.js
@@ -482,12 +482,20 @@ IPA.details_facet = function(spec) {
};
that.enable_update = function(value) {
- if(value) {
- that.reset_button.removeClass('action-button-disabled');
- that.update_button.removeClass('action-button-disabled');
- } else {
- that.reset_button.addClass('action-button-disabled');
- that.update_button.addClass('action-button-disabled');
+ if(that.reset_button) {
+ if(value) {
+ that.reset_button.removeClass('action-button-disabled');
+ } else {
+ that.reset_button.addClass('action-button-disabled');
+ }
+ }
+
+ if(that.update_button) {
+ if(value) {
+ that.update_button.removeClass('action-button-disabled');
+ } else {
+ that.update_button.addClass('action-button-disabled');
+ }
}
};