Author: yusaku
Date: Wed Jun 26 02:44:44 2013
New Revision: 1496718
URL: http://svn.apache.org/r1496718
Log:
AMBARI-2477. Incorrect behavior of dashboard widgets after switching to classic
dashboard and returning. (Xi Wang via yusaku)
Modified:
incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/main/dashboard.js
Modified:
incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/main/dashboard.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/main/dashboard.js?rev=1496718&r1=1496717&r2=1496718&view=diff
==============================================================================
---
incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/main/dashboard.js
(original)
+++
incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/main/dashboard.js
Wed Jun 26 02:44:44 2013
@@ -365,11 +365,12 @@ App.MainDashboardView = Em.View.extend({
var oldValue = this.get('currentPrefObject');
oldValue.dashboardVersion = 'new';
this.postUserPref(this.get('persistKey'), oldValue);
+ this.didInsertElement();
}else{
var oldValue = this.get('initPrefObject');
oldValue.dashboardVersion = 'new';
+ this.translateToReal(oldValue);
}
- this.translateToReal(oldValue);
},
updateServices: function(){