add hint class to link/div

This commit is contained in:
Damien Elmes 2012-08-23 20:03:29 +09:00
parent 162ccdcc03
commit f661eef702

View file

@ -11,9 +11,9 @@ def hint(txt, extra, context, tag, fullname):
# random id
domid = "hint%d" % id(txt)
return """
<a href="#"
<a class=hint href="#"
onclick="this.style.display='none';document.getElementById('%s').style.display='block';return false;">
%s</a><div id="%s" style="display: none">%s</div>
%s</a><div id="%s" class=hint style="display: none">%s</div>
""" % (domid, _("Show %s") % tag, domid, txt)
def install():