ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject ambari git commit: AMBARI-12090. Hive configs: save and discard buttons are blinking all the time (onechiporenko)
Date Wed, 08 Jul 2015 14:16:41 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 982f606d9 -> e1f142f0e


AMBARI-12090. Hive configs: save and discard buttons are blinking all the time (onechiporenko)


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

Branch: refs/heads/branch-2.1
Commit: e1f142f0e1f5500e14da9ad3059c4b8f3df07c29
Parents: 982f606
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Wed Jul 8 17:12:51 2015 +0300
Committer: Oleg Nechiporenko <onechiporenko@apache.org>
Committed: Wed Jul 8 17:13:03 2015 +0300

----------------------------------------------------------------------
 .../configs/widgets/slider_config_widget_view.js       | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e1f142f0/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 c61ff5b..b9cbc46 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
@@ -554,10 +554,6 @@ App.SliderConfigWidgetView = App.ConfigWidgetView.extend({
         if (arguments.length) {
           this.refreshSliderObserver();
         }
-        else {
-          // hack for slider-overrides
-          this._changeBoundariesOnceLater("don't call me more!");
-        }
       } catch (e) {
         console.error('error while rebuilding slider for config: ' + this.get('config.name'));
       }
@@ -574,11 +570,9 @@ App.SliderConfigWidgetView = App.ConfigWidgetView.extend({
    * @method changeBoundariesOnceLater
    */
   _changeBoundariesOnceLater: function() {
-    console.debug('_changeBoundariesOnceLater', arguments);
-    var args = arguments;
     var self = this;
     Em.run.later('sync', function() {
-      self.changeBoundariesOnce(args);
+      self.changeBoundariesOnce();
     }, 10);
   },
 
@@ -587,9 +581,12 @@ App.SliderConfigWidgetView = App.ConfigWidgetView.extend({
    * @method refreshSliderObserver
    */
   refreshSliderObserver: function() {
+    var self = this;
     var sliderTickLabel = this.$('.ui-slider-wrapper:eq(0) .slider-tick-label:first');
     if (sliderTickLabel.width() == 0 && this.isValueCompatibleWithWidget()) {
-      this._changeBoundariesOnceLater();
+      Em.run.next(function() {
+        self._changeBoundariesOnceLater();
+      });
     }
   }.observes('parentView.content.isActive', 'parentView.parentView.tab.isActive'),
 


Mime
View raw message