diff --git a/src/main/java/jenkins/scm/impl/subversion/SubversionSCMSource.java b/src/main/java/jenkins/scm/impl/subversion/SubversionSCMSource.java index 96a064d3f..cf6fb2ad3 100644 --- a/src/main/java/jenkins/scm/impl/subversion/SubversionSCMSource.java +++ b/src/main/java/jenkins/scm/impl/subversion/SubversionSCMSource.java @@ -938,10 +938,7 @@ public FormValidation doCheckCredentialsId(StaplerRequest req, @AncestorInPath I } catch (SVNException e) { LOGGER.log(Level.INFO, "Failed to access subversion repository "+url,e); String message = hudson.scm.subversion.Messages.SubversionSCM_doCheckRemote_exceptionMsg1( - Util.escape(url), Util.escape(e.getErrorMessage().getFullMessage()), - "javascript:document.getElementById('svnerror').style.display='block';" - + "document.getElementById('svnerrorlink').style.display='none';" - + "return false;") + Util.escape(url), Util.escape(e.getErrorMessage().getFullMessage())) + "
"
                   + Util.xmlEscape(Functions.printThrowable(e)) + "
"; return FormValidation.errorWithMarkup(message); diff --git a/src/main/resources/hudson/scm/subversion/Messages.properties b/src/main/resources/hudson/scm/subversion/Messages.properties index 31294a9bb..f39dac4f0 100644 --- a/src/main/resources/hudson/scm/subversion/Messages.properties +++ b/src/main/resources/hudson/scm/subversion/Messages.properties @@ -28,7 +28,7 @@ SubversionSCM.doCheckRemote.badPath=\ SubversionSCM.doCheckRemote.badPathSuggest=\ "{0}/{1}" doesn''t exist in the repository. Maybe you meant "{0}{2}"? SubversionSCM.doCheckRemote.exceptionMsg1=\ - Unable to access {0} : {1} (show details) + Unable to access {0} : {1} (show details) SubversionSCM.doCheckRemote.exceptionMsg2=\ (Maybe you need to enter credential?) SubversionSCM.doCheckRemote.invalidUrl=Invalid URL syntax diff --git a/src/main/resources/hudson/scm/subversion/Messages_de.properties b/src/main/resources/hudson/scm/subversion/Messages_de.properties index e4a98757d..9f00b05de 100644 --- a/src/main/resources/hudson/scm/subversion/Messages_de.properties +++ b/src/main/resources/hudson/scm/subversion/Messages_de.properties @@ -26,7 +26,7 @@ SubversionSCM.doCheckRemote.badPath=\ SubversionSCM.doCheckRemote.badPathSuggest=\ "{0}/{1}" existiert nicht im Repository. Meinten Sie vielleicht "{0}{2}"? SubversionSCM.doCheckRemote.exceptionMsg1=\ - Kein Zugriff auf {0} : {1} (Details) + Kein Zugriff auf {0} : {1} (Details) SubversionSCM.doCheckRemote.exceptionMsg2=\ (Vielleicht müssen Sie sich zuvor authentifizieren?) SubversionSCM.doCheckRemote.invalidUrl=\ diff --git a/src/main/resources/hudson/scm/subversion/Messages_es.properties b/src/main/resources/hudson/scm/subversion/Messages_es.properties index 2b39a5f65..2c597439e 100644 --- a/src/main/resources/hudson/scm/subversion/Messages_es.properties +++ b/src/main/resources/hudson/scm/subversion/Messages_es.properties @@ -11,7 +11,7 @@ SubversionTagAction.DisplayName.HasNoTag=Etiquetar esta ejecuci SubversionSCM.doCheckRemote.badPath={0} no existe en el repositorio SubversionSCM.doCheckRemote.exceptionMsg1=\ - Acceso imposible a {0} : {1} (ver detalles) + Acceso imposible a {0} : {1} (ver detalles) SubversionTagAction.DisplayName.HasTags=Etiquetas SubversionTagAction.Tooltip=Etiquetado diff --git a/src/main/resources/hudson/scm/subversion/Messages_fr.properties b/src/main/resources/hudson/scm/subversion/Messages_fr.properties index bce82b203..8a45219ae 100644 --- a/src/main/resources/hudson/scm/subversion/Messages_fr.properties +++ b/src/main/resources/hudson/scm/subversion/Messages_fr.properties @@ -27,7 +27,7 @@ SubversionSCM.doCheckRemote.badPath=\ SubversionSCM.doCheckRemote.badPathSuggest=\ "{0}/{1}" n''existe pas dans le d\u00e9p\u00f4t. Vous pensiez peut-\u00eatre \u00e0 "{0}{2}" ? SubversionSCM.doCheckRemote.exceptionMsg1=\ - Impossible d''acc\u00e9der \u00e0 {0} : {1} (voir les d\u00e9tails) + Impossible d''acc\u00e9der \u00e0 {0} : {1} (voir les d\u00e9tails) SubversionSCM.doCheckRemote.exceptionMsg2=\ (Vous avez peut-\u00eatre besoin de saisir des identifiants ?) SubversionSCM.doCheckRemote.invalidUrl=\ diff --git a/src/main/resources/hudson/scm/subversion/Messages_ja.properties b/src/main/resources/hudson/scm/subversion/Messages_ja.properties index b97ebb7ac..53b89ea7d 100644 --- a/src/main/resources/hudson/scm/subversion/Messages_ja.properties +++ b/src/main/resources/hudson/scm/subversion/Messages_ja.properties @@ -27,7 +27,7 @@ SubversionSCM.doCheckRemote.badPath=\ SubversionSCM.doCheckRemote.badPathSuggest=\ "{0}/{1}" \u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5b58\u5728\u3057\u307e\u305b\u3093\u3002"{0}{2}"\u3067\u306f\u306a\u3044\u3067\u3059\u304b? SubversionSCM.doCheckRemote.exceptionMsg1=\ - {0}\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002 : {1} (\u8a73\u7d30) + {0}\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002 : {1} (\u8a73\u7d30) SubversionSCM.doCheckRemote.exceptionMsg2=\ (\u8a8d\u8a3c\u3092\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093) SubversionSCM.doCheckRemote.invalidUrl=\ diff --git a/src/main/resources/hudson/scm/subversion/Messages_zh_TW.properties b/src/main/resources/hudson/scm/subversion/Messages_zh_TW.properties index ba46010ac..7aed7c5c3 100644 --- a/src/main/resources/hudson/scm/subversion/Messages_zh_TW.properties +++ b/src/main/resources/hudson/scm/subversion/Messages_zh_TW.properties @@ -28,7 +28,7 @@ SubversionSCM.doCheckRemote.badPath=\ SubversionSCM.doCheckRemote.badPathSuggest=\ \u5132\u5b58\u5eab\u88e1\u6c92\u6709 "{0}/{1}"\u3002\u60a8\u6307\u7684\u662f "{0}{2}" \u55ce? SubversionSCM.doCheckRemote.exceptionMsg1=\ - \u7121\u6cd5\u5b58\u53d6 {0} : {1} (\u986f\u793a\u8a73\u7d30\u8cc7\u6599) + \u7121\u6cd5\u5b58\u53d6 {0} : {1} (\u986f\u793a\u8a73\u7d30\u8cc7\u6599) SubversionSCM.doCheckRemote.exceptionMsg2=\ (\u6216\u8a31\u60a8\u8a72\u8f38\u5165\u6191\u8b49 \u4e86?) SubversionSCM.doCheckRemote.invalidUrl=\ diff --git a/src/main/resources/jenkins/scm/impl/subversion/SubversionSCMSource/config-detail.jelly b/src/main/resources/jenkins/scm/impl/subversion/SubversionSCMSource/config-detail.jelly index 4cfbc5c57..242c88694 100644 --- a/src/main/resources/jenkins/scm/impl/subversion/SubversionSCMSource/config-detail.jelly +++ b/src/main/resources/jenkins/scm/impl/subversion/SubversionSCMSource/config-detail.jelly @@ -24,6 +24,7 @@ + diff --git a/src/main/resources/jenkins/scm/impl/subversion/SubversionSCMSource/resource.js b/src/main/resources/jenkins/scm/impl/subversion/SubversionSCMSource/resource.js new file mode 100644 index 000000000..87d507fd6 --- /dev/null +++ b/src/main/resources/jenkins/scm/impl/subversion/SubversionSCMSource/resource.js @@ -0,0 +1,8 @@ +Behaviour.specify("#svnerrorlink", "SubversionSCMSource_showDetails", 0, (element) => { + element.addEventListener("click", (event) => { + event.preventDefault(); + + document.getElementById("svnerror").style.display = "block"; + event.target.style.display = "none"; + }); +});