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