You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2015/06/24 17:03:20 UTC

ambari git commit: AMBARI-12123 Configs: strange slider behavior. (ababiichuk)

Repository: ambari
Updated Branches:
  refs/heads/trunk ad2c2695a -> 185593e51


AMBARI-12123 Configs: strange slider behavior. (ababiichuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/185593e5
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/185593e5
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/185593e5

Branch: refs/heads/trunk
Commit: 185593e51bc4c184cc2598c722b0d8206a18aa86
Parents: ad2c269
Author: aBabiichuk <ab...@cybervisiontech.com>
Authored: Wed Jun 24 14:27:48 2015 +0300
Committer: aBabiichuk <ab...@cybervisiontech.com>
Committed: Wed Jun 24 18:00:59 2015 +0300

----------------------------------------------------------------------
 .../views/common/configs/widgets/slider_config_widget_view.js  | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/185593e5/ambari-web/app/views/common/configs/widgets/slider_config_widget_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/widgets/slider_config_widget_view.js b/ambari-web/app/views/common/configs/widgets/slider_config_widget_view.js
index efe3f9e..32f273c 100644
--- a/ambari-web/app/views/common/configs/widgets/slider_config_widget_view.js
+++ b/ambari-web/app/views/common/configs/widgets/slider_config_widget_view.js
@@ -487,6 +487,9 @@ App.SliderConfigWidgetView = App.ConfigWidgetView.extend({
     this._super();
     this.set('isRestoring', true);
     this.get('slider').setValue(this.get('widgetDefaultValue'));
+    if (this.get('config.value') === this.get('config.savedValue')) {
+      this.set('isRestoring', false);
+    }
   },
 
   /**
@@ -496,6 +499,9 @@ App.SliderConfigWidgetView = App.ConfigWidgetView.extend({
     this._super();
     this.set('isRestoring', true);
     this.get('slider').setValue(this.get('widgetRecommendedValue'));
+    if (this.get('config.value') === this.get('config.recommendedValue')) {
+      this.set('isRestoring', false);
+    }
   },
 
   /**