提交 cae8c5f2 编写于 作者: K Kohsuke Kawaguchi

Merge pull request #883 from daniel-beck/master

Show full job names in checkbox tooltips when configuring list views
......@@ -51,7 +51,7 @@ THE SOFTWARE.
<j:set var="spanStyle" value="${it.recurse?'':'display:none'}"/>
</j:if>
<span class="${spanClass}" style="${spanStyle}">
<f:checkbox name="${job.getRelativeNameFromGroup(it.ownerItemGroup)}" checked="${it.jobNamesContains(job)}" title="${h.getRelativeDisplayNameFrom(job,it.ownerItemGroup)}" />
<f:checkbox name="${job.getRelativeNameFromGroup(it.ownerItemGroup)}" checked="${it.jobNamesContains(job)}" title="${h.getRelativeDisplayNameFrom(job,it.ownerItemGroup)}" tooltip="${job.fullName}" />
<br/>
</span>
</j:forEach>
......
......@@ -51,15 +51,20 @@ THE SOFTWARE.
If specified, this human readable text will follow the checkbox, and clicking this text also
toggles the checkbox.
</st:attribute>
<st:attribute name="tooltip">
Used as tooltip of the checkbox, and, if a title is specified, of the title
</st:attribute>
</st:documentation>
<f:prepareDatabinding />
<input type="checkbox"
name="${attrs.name?:'_.'+attrs.field}"
value="${attrs.value}"
title="${attrs.tooltip}"
onclick="${attrs.onclick}" id="${attrs.id}" class="${attrs.negative!=null ? 'negative' : null} ${attrs.checkUrl!=null?'validated':''}"
checkUrl="${attrs.checkUrl}" json="${attrs.json}"
checked="${(attrs.checked ?: instance[attrs.field] ?: attrs.default) ? 'true' : null}"/>
<j:if test="${attrs.title!=null}">
<label class="attach-previous">${attrs.title}</label>
<label class="attach-previous"
title="${attrs.tooltip}">${attrs.title}</label>
</j:if>
</j:jelly>
\ No newline at end of file
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册