Skip to content
Permalink
Browse files

workaround for JENKINS-48986

  • Loading branch information...
tommywo committed Jan 16, 2018
1 parent 8d95930 commit 2e9fa0d1d5ef22662dd3ecd971f89c858a4d5ee4
@@ -16,10 +16,16 @@ limitations under the License.
-->
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form">
<tr>
<td><f:select field="fileId" clazz="jclouds" default=""/></td>
<td><input type="button" value="${%Show content}" class="jclouds-showcf"
disabled="${empty(instance.fileId)?'true':null}"/></td>
<td><f:repeatableDeleteButton/></td>
</tr>
<div style="display:block;">
<div style="display:inline-block;" >
<f:select field="fileId" clazz="jclouds" default=""/>
</div>
<div style="display:inline-block;" >
<input type="button" value="${%Show content}" class="jclouds-showcf"
disabled="${empty(instance.fileId)?'true':null}"/>
</div>
<div style="display:inline-block;" >
<f:repeatableDeleteButton/>
</div>
</div>
</j:jelly>
@@ -63,13 +63,13 @@ window.JClouds = window.JClouds || {
},
"showcf": function(evt) {
var but = evt.target || evt.srcElement;
var fid = $(but).up('tr').down('select').getValue();
var fid = $(but).up('div').up('div').down('select').getValue();
evt.stop();
window.JClouds.showdlg(rootURL + '/configfiles/show?id=' + fid, window.JClouds.showcfpost);
},
"chgbutton": function(sel) {
var dis = $(sel).getValue() == '';
var but = $(sel).up('tr').down('.yui-button').yb;
var but = $(sel).up('div').up('div').down('.yui-button').yb;
but.set('disabled', dis, true);
},
"chsel": function(evt) {

0 comments on commit 2e9fa0d

Please sign in to comment.
You can’t perform that action at this time.