You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/07/04 06:39:46 UTC
svn commit: r1499652 -
/incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js
Author: yusaku
Date: Thu Jul 4 04:39:46 2013
New Revision: 1499652
URL: http://svn.apache.org/r1499652
Log:
AMBARI-2551. Clicking "undo" does not prompt to revert custom user props. (Antonenko Alexander via yusaku)
Modified:
incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js
Modified: incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js?rev=1499652&r1=1499651&r2=1499652&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/common/configs/services_config.js Thu Jul 4 04:39:46 2013
@@ -80,8 +80,14 @@ App.ServiceConfigsByCategoryView = Ember
* Warn/prompt user to adjust Service props when changing user/groups in Misc
* Is triggered when user ended editing text field
*/
- miscConfigChange: function () {
- var changedProperty = this.get("serviceConfigs").filterProperty("editDone", true);
+ miscConfigChange: function (manuallyChangedProperty) {
+ var changedProperty;
+ if(manuallyChangedProperty.get("id")){
+ changedProperty = [manuallyChangedProperty];
+ }else{
+ changedProperty = this.get("serviceConfigs").filterProperty("editDone", true);
+ }
+
if (changedProperty.length > 0) {
changedProperty = changedProperty.objectAt(0);
} else {
@@ -432,6 +438,7 @@ App.ServiceConfigsByCategoryView = Ember
}
serviceConfigProperty.set('value', dValue);
}
+ this.miscConfigChange(serviceConfigProperty);
},
createOverrideProperty: function (event) {