update location from server response as user can user relative path when adding a repository.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1234200 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-01-20 23:17:15 +00:00
parent 8bc8b434c5
commit b2ee2f7019
2 changed files with 3 additions and 1 deletions

View File

@ -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()

View File

@ -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();