reload screen after redback runtime update

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1448849 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-02-21 23:27:10 +00:00
parent a7487f5a18
commit a73c35bcf2
1 changed files with 9 additions and 7 deletions

View File

@ -1616,20 +1616,22 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
dataType: 'json',
success: function(data) {
var message=$.i18n.prop('redback-runtime-configuration.updated');
window.sammyArchivaApplication.runRoute("get","#redbackruntimeconfig");
displaySuccessMessage(message);
},
error: function(data) {
var res = $.parseJSON(data.responseText);
displayRestError(res);
},
complete:function(data){
removeMediumSpinnerImg(userMessages);
saveButton.button('reset');
self.redbackRuntimeConfiguration().modified(false);
self.redbackRuntimeConfiguration().ldapConfiguration().modified(false);
saveModifyLdapGroupMapping();
}
}
).always(
function(){
removeMediumSpinnerImg(userMessages);
saveButton.button('reset');
self.redbackRuntimeConfiguration().modified(false);
self.redbackRuntimeConfiguration().ldapConfiguration().modified(false);
saveModifyLdapGroupMapping();
}
);