From: Olivier Lamy Date: Wed, 12 Sep 2012 20:45:39 +0000 (+0000) Subject: [MRM-648] Add description field to the different types of repositories and proxies X-Git-Tag: archiva-1.4-M3~242 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=838b6e957be7c24b54c493d48b8a5e30a05e93be;p=archiva.git [MRM-648] Add description field to the different types of repositories and proxies implements UI for remote repositories. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1384118 13f79535-47bb-0310-9956-ffa450edef68 --- 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 39abea99c..1397aee43 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 @@ -552,7 +552,8 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery RemoteRepository=function(id,name,layout,indexDirectory,url,userName,password,timeout,downloadRemoteIndex,remoteIndexUrl, - remoteDownloadNetworkProxyId,cronExpression,remoteDownloadTimeout,downloadRemoteIndexOnStartup){ + remoteDownloadNetworkProxyId,cronExpression,remoteDownloadTimeout,downloadRemoteIndexOnStartup, + description){ var self=this; @@ -589,7 +590,7 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery this.timeout.subscribe(function(newValue){self.modified(true)}); //private boolean downloadRemoteIndex = false; - this.downloadRemoteIndex=ko.observable(downloadRemoteIndex); + this.downloadRemoteIndex=ko.observable(downloadRemoteIndex?false:downloadRemoteIndex); this.downloadRemoteIndex.subscribe(function(newValue){self.modified(true)}); //private String remoteIndexUrl = ".index"; @@ -609,9 +610,12 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery this.remoteDownloadTimeout.subscribe(function(newValue){self.modified(true)}); //private boolean downloadRemoteIndexOnStartup = false; - this.downloadRemoteIndexOnStartup=ko.observable(downloadRemoteIndexOnStartup); + this.downloadRemoteIndexOnStartup=ko.observable(downloadRemoteIndexOnStartup?false:downloadRemoteIndexOnStartup); this.downloadRemoteIndexOnStartup.subscribe(function(newValue){self.modified(true)}); + this.description=ko.observable(description); + this.description.subscribe(function(newValue){self.modified(true)}); + this.getTypeLabel=function(){ for(var i=0;i -
-
@@ -379,6 +377,14 @@ {{else}} {{/if}} + + {{if row.description()}} + + + + {{/if}} + @@ -485,7 +491,6 @@
-
@@ -494,6 +499,13 @@
+
+ +
+ +
+
+