Author: yusaku
Date: Wed Jun 26 02:45:08 2013
New Revision: 1496719
URL: http://svn.apache.org/r1496719
Log:
AMBARI-2477. Incorrect behavior of dashboard widgets after switching to classic
dashboard and returning. (Xi Wang via yusaku)
Modified:
incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js
Modified: incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js?rev=1496719&r1=1496718&r2=1496719&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js Wed Jun 26
02:45:08 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(){