Repository: ambari Updated Branches: refs/heads/trunk 5c6bb4e4c -> 3c2492322
Revert "AMBARI-15948. Fix bugs with config groups restoring after next/back actions(akovalenko)" Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3c249232 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3c249232 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3c249232 Branch: refs/heads/trunk Commit: 3c2492322765584487db4fa5ff354865922e7ed5 Parents: 5c6bb4e Author: Aleksandr Kovalenko <[email protected]> Authored: Tue Apr 19 14:45:12 2016 +0300 Committer: Aleksandr Kovalenko <[email protected]> Committed: Tue Apr 19 14:45:12 2016 +0300 ---------------------------------------------------------------------- .../views/main/service/manage_config_groups_view.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/3c249232/ambari-web/app/views/main/service/manage_config_groups_view.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/main/service/manage_config_groups_view.js b/ambari-web/app/views/main/service/manage_config_groups_view.js index 7517b43..d4cb381 100644 --- a/ambari-web/app/views/main/service/manage_config_groups_view.js +++ b/ambari-web/app/views/main/service/manage_config_groups_view.js @@ -93,20 +93,18 @@ App.MainServiceManageConfigGroupView = Em.View.extend({ this.get('controller').loadHosts(); }, + didInsertElement: function () { + this.selectDefaultGroup(); + App.tooltip($('.properties-link')); + App.tooltip($("[rel='button-info']")); + App.tooltip($("[rel='button-info-dropdown']"), {placement: 'left'}); + }, + willDestroyElement: function () { this.get('controller.configGroups').clear(); this.get('controller.originalConfigGroups').clear(); }, - showTooltip: function () { - if (!this.get('controller.isLoaded')) return false; - Em.run.next(function(){ - App.tooltip($('.properties-link')); - App.tooltip($("[rel='button-info']")); - App.tooltip($("[rel='button-info-dropdown']"), {placement: 'left'}); - }); - }.observes('controller.isLoaded'), - /** * Disable actions remove and rename for Default config group * @method buttonObserver
