Repository: ambari
Updated Branches:
  refs/heads/branch-1.7.0 3fa7076c5 -> 0fa486535


AMBARI-8305. Jobs View UI link directs to last Tez Job seen instead of the one 
clicked. (onechiporenko)


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

Branch: refs/heads/branch-1.7.0
Commit: 0fa4865355a2d7ee2d1998e5b2965ee6bfd35a7e
Parents: 3fa7076
Author: Oleg Nechiporenko <onechipore...@apache.org>
Authored: Thu Nov 13 14:14:09 2014 +0200
Committer: Oleg Nechiporenko <onechipore...@apache.org>
Committed: Thu Nov 13 14:14:09 2014 +0200

----------------------------------------------------------------------
 .../ui/app/scripts/views/job/hive_job_details_view.js        | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/0fa48653/contrib/views/jobs/src/main/resources/ui/app/scripts/views/job/hive_job_details_view.js
----------------------------------------------------------------------
diff --git 
a/contrib/views/jobs/src/main/resources/ui/app/scripts/views/job/hive_job_details_view.js
 
b/contrib/views/jobs/src/main/resources/ui/app/scripts/views/job/hive_job_details_view.js
index 4d34e24..dbc5fe2 100644
--- 
a/contrib/views/jobs/src/main/resources/ui/app/scripts/views/job/hive_job_details_view.js
+++ 
b/contrib/views/jobs/src/main/resources/ui/app/scripts/views/job/hive_job_details_view.js
@@ -353,6 +353,14 @@ App.JobView = Em.View.extend({
   },
 
   /**
+   * Stop updating job info when user navigate away from job's page
+   * @method willDestroyElement
+   */
+  willDestroyElement: function() {
+    this.get('controller').stop();
+  },
+
+  /**
    * Can graph be zoomed-in
    * @type {bool}
    */

Reply via email to