]> source.dussan.org Git - archiva.git/commitdiff
modified flag to false after add
authorOlivier Lamy <olamy@apache.org>
Mon, 13 Feb 2012 13:54:04 +0000 (13:54 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 13 Feb 2012 13:54:04 +0000 (13:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1243510 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js

index f7473c8ff1535d90dd8c9517179257500fd974da..836cc840b2246ef976aad365ea5d565e79ff0faa 100644 (file)
@@ -233,6 +233,7 @@ $(function() {
             curManagedRepository.location(data.managedRepository.location);
             self.managedRepositoriesViewModel.managedRepositories.push(curManagedRepository);
             displaySuccessMessage($.i18n.prop('managedrepository.added'));
+            curManagedRepository.modified(false);
             activateManagedRepositoriesGridTab();
           },
           error: function(data) {
@@ -642,6 +643,7 @@ $(function() {
             contentType: 'application/json',
             dataType: 'json',
             success: function(data) {
+              self.remoteRepository.modified(false);
               self.remoteRepositoriesViewModel.remoteRepositories.push(self.remoteRepository);
               displaySuccessMessage($.i18n.prop('remoterepository.added'));
               activateRemoteRepositoriesGridTab();