]> source.dussan.org Git - archiva.git/commitdiff
update location from server response as user can user relative path when adding a...
authorOlivier Lamy <olamy@apache.org>
Fri, 20 Jan 2012 23:17:15 +0000 (23:17 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 20 Jan 2012 23:17:15 +0000 (23:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1234200 13f79535-47bb-0310-9956-ffa450edef68

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

index 53e695b7a9934aeeb709f49d1dcdca33d4063db1..10bd6aa7b1a862a537ba13f858cff9055f678654 100644 (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()
index 5db7906fd7da044368e537f4917791d2bbb9aab5..9932c50bfa32944fa08386449f1423a5317318f6 100644 (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();