You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/03/04 18:35:41 UTC
ambari git commit: AMBARI-9924. Alerts popup: status tooltip doesn't
appear after a few seconds (alexantonenko)
Repository: ambari
Updated Branches:
refs/heads/trunk be855bedf -> 1475c7a95
AMBARI-9924. Alerts popup: status tooltip doesn't appear after a few seconds (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1475c7a9
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1475c7a9
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1475c7a9
Branch: refs/heads/trunk
Commit: 1475c7a953762ab3e20311434b30304e0ed07766
Parents: be855be
Author: Alex Antonenko <hi...@gmail.com>
Authored: Wed Mar 4 18:34:30 2015 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Wed Mar 4 19:35:33 2015 +0200
----------------------------------------------------------------------
.../controllers/main/alert_definitions_controller.js | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/1475c7a9/ambari-web/app/controllers/main/alert_definitions_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/alert_definitions_controller.js b/ambari-web/app/controllers/main/alert_definitions_controller.js
index 10563cc..f5086d1 100644
--- a/ambari-web/app/controllers/main/alert_definitions_controller.js
+++ b/ambari-web/app/controllers/main/alert_definitions_controller.js
@@ -196,6 +196,15 @@ App.MainAlertDefinitionsController = Em.ArrayController.extend({
this.set('filteredContent', this.get('content'));
}.observes('content.length'),
+ refreshTooltips: function () {
+ this.ensureTooltip();
+ }.observes('contents.length'),
+
+ ensureTooltip: function () {
+ Em.run.next(this, function () {
+ App.tooltip($(".timeago"));
+ });
+ },
/**
* Router transition to alert definition details page
* @param event
@@ -232,9 +241,7 @@ App.MainAlertDefinitionsController = Em.ArrayController.extend({
didInsertElement: function () {
this.filter();
- Em.run.next(this, function () {
- App.tooltip($(".timeago"));
- });
+ this.ensureTooltip();
}
})
});