ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject git commit: AMBARI-7708. Jobs Tab shows time in UTC format. (akovalenko)
Date Fri, 10 Oct 2014 14:46:45 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 0d9a9ef6d -> 6e4e2b905


AMBARI-7708. Jobs Tab shows time in UTC format. (akovalenko)


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

Branch: refs/heads/trunk
Commit: 6e4e2b9051e552ae6d37a3b3d710a7a4bd77a953
Parents: 0d9a9ef
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Fri Oct 10 17:46:22 2014 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Fri Oct 10 17:46:22 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/service/info/configs.js | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6e4e2b90/ambari-web/app/controllers/main/service/info/configs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/info/configs.js b/ambari-web/app/controllers/main/service/info/configs.js
index 386ec96..f7a7b38 100644
--- a/ambari-web/app/controllers/main/service/info/configs.js
+++ b/ambari-web/app/controllers/main/service/info/configs.js
@@ -2671,12 +2671,15 @@ App.MainServiceInfoConfigsController = Em.Controller.extend(App.ServerValidatorM
         } else {
           controller.set('selectedService.configGroups', managedConfigGroups);
         }
-        //check whether selectedConfigGroup was selected
+
+        var selectEventObject = {};
+        //check whether selectedConfigGroup exists
         if (selectedConfigGroup && controller.get('configGroups').someProperty('name',
selectedConfigGroup.get('name'))) {
-          controller.set('selectedConfigGroup', selectedConfigGroup);
+          selectEventObject.context = selectedConfigGroup;
         } else {
-          controller.set('selectedConfigGroup', managedConfigGroups.findProperty('isDefault',
true));
+          selectEventObject.context = managedConfigGroups.findProperty('isDefault', true);
         }
+        controller.selectConfigGroup(selectEventObject);
       },
 
       updateButtons: function () {


Mime
View raw message