Skip to content

Commit

Permalink
[FIXED JENKINS-9480] - request for textarea instead of textbox for ex…
Browse files Browse the repository at this point in the history
…ec command
  • Loading branch information
bap2000 committed May 6, 2011
1 parent dd4b049 commit 497b0bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pom.xml
Expand Up @@ -32,6 +32,7 @@
<version>1.388</version>
</parent>

<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>publish-over-ssh</artifactId>
<packaging>hpi</packaging>
<name>Publish Over SSH</name>
Expand Down Expand Up @@ -68,7 +69,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>publish-over</artifactId>
<version>0.6</version>
<version>0.7-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
Expand Up @@ -24,7 +24,7 @@
~ THE SOFTWARE.
-->

<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:poj="/pojelly">

<script type="text/javascript" src="${rootURL}/plugin/publish-over-ssh/js/pos.js" />
<j:set var="helpUrl" value="${rootURL}/plugin/publish-over-ssh/help/config/"/>
Expand Down Expand Up @@ -94,7 +94,7 @@
</f:entry>

<f:entry title="${%execCommand.title}" help="${helpUrl}execCommand.html">
<f:textbox name="execCommand" value="${transfer.execCommand}" checkUrl="${descriptor.publisherDescriptor.getCheckUrl('execCommand')}" clazz="ssh-exec-control"/>
<poj:textarea name="execCommand" value="${transfer.execCommand}" minRows="1" checkUrl="${descriptor.publisherDescriptor.getCheckUrl('execCommand')}" class="ssh-exec-control"/>
</f:entry>

<f:description>
Expand Down
3 changes: 3 additions & 0 deletions src/main/webapp/js/pos.js
Expand Up @@ -69,6 +69,9 @@ function bap_blur_inputs(container) {
$(container).getElementsBySelector('input').each(function(inputControl) {
fireEvent(inputControl, 'change');
});
$(container).getElementsBySelector('textarea').each(function(inputControl) {
fireEvent(inputControl, 'change');
});
}

var sshBehave = {
Expand Down

0 comments on commit 497b0bc

Please sign in to comment.