mirror of https://github.com/apache/archiva.git
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:
parent
8bc8b434c5
commit
b2ee2f7019
|
@ -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()
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue