提交 c5c06d56 编写于 作者: K kohsuke

make tooltip generator reusable from outside Jelly.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2408 71c3de6d-444a-0410-be80-ed276b4c234a
上级 0b6321c5
......@@ -13,9 +13,6 @@
-->
<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">
<script>
new YAHOO.widget.Tooltip("tooltip-${id}", {
context:"${id}",
text:"<d:invokeBody/>",
showDelay:500 } );
makeTooltip("${id}","<d:invokeBody/>");
</script>
</j:jelly>
\ No newline at end of file
......@@ -343,4 +343,11 @@ function encode(str){
}
}
return s0;
}
function makeTooltip(id,text) {
new YAHOO.widget.Tooltip("tooltip-"+id, {
context:id,
text:text,
showDelay:500 } );
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册