Author: yusaku
Date: Thu Jan 31 02:01:31 2013
New Revision: 1440790
URL: http://svn.apache.org/viewvc?rev=1440790&view=rev
Log:
AMBARI-1321. Switching out of Jobs page does not launch popup anymore.
(srimanth via yusaku)
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/ambari-web/app/views/main/apps_view.js
Modified: incubator/ambari/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1440790&r1=1440789&r2=1440790&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Thu Jan 31 02:01:31 2013
@@ -213,6 +213,9 @@ Trunk (unreleased changes):
BUG FIXES
+ AMBARI-1321. Switching out of Jobs page does not launch popup anymore.
+ (srimanth via yusaku)
+
AMBARI-1313. Alert time jumps between 'less than a minute ago' and 'about a
minute ago'. (srimanth via yusaku)
Modified: incubator/ambari/trunk/ambari-web/app/views/main/apps_view.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/apps_view.js?rev=1440790&r1=1440789&r2=1440790&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/apps_view.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/apps_view.js Thu Jan 31
02:01:31 2013
@@ -257,6 +257,14 @@ App.MainAppsView = Em.View.extend({
}
},
/**
+ * Clears up last job ID when coming in fresh to page.
+ * Not doing this will result in failure to load job
+ * data, and subsequently the popup dialog.
+ */
+ didInsertElement: function(){
+ App.router.get('mainAppsItemController').set('lastJobId', null);
+ },
+ /**
*
*/
onChangeViewType: function () {