diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index.html index 53e695b7a..10bd6aa7b 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index.html @@ -43,7 +43,8 @@ require.config({ baseUrl: "js/" }); - $LAB.setGlobalDefaults({AlwaysPreserveOrder:true,BasePath:"js/",explicit_preloading:false}); + // CacheBust is for dev purpose use false in prod env ! + $LAB.setGlobalDefaults({AlwaysPreserveOrder:true,BasePath:"js/",explicit_preloading:false,CacheBust:true}); $LAB .script("jquery.tmpl.js").wait() .script("archiva/utils.js").wait() diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js index 5db7906fd..9932c50bf 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js @@ -190,6 +190,7 @@ $(function() { data: "{\"managedRepository\": " + ko.toJSON(managedRepository)+"}", dataType: 'json', success: function(data) { + curManagedRepository.location(data.managedRepository.location); self.managedRepositoriesViewModel.managedRepositories.push(curManagedRepository); displaySuccessMessage($.i18n.prop('managedrepository.added')); activateManagedRepositoriesGridTab();