mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
fix other clickable anchors
This commit is contained in:
parent
14f4107dfd
commit
0c1c7a1ca3
2 changed files with 5 additions and 5 deletions
|
|
@ -117,9 +117,9 @@ where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
|
||||||
return ""
|
return ""
|
||||||
return "<br><div style='width:50%;border: 1px solid #000;padding:5px;'>"+(
|
return "<br><div style='width:50%;border: 1px solid #000;padding:5px;'>"+(
|
||||||
_("You have a lot of decks. Please see %(a)s. %(b)s") % dict(
|
_("You have a lot of decks. Please see %(a)s. %(b)s") % dict(
|
||||||
a=("<a href=# onclick=\"pycmd('lots')\">%s</a>" % _(
|
a=("<a href=# onclick=\"return pycmd('lots')\">%s</a>" % _(
|
||||||
"this page")),
|
"this page")),
|
||||||
b=("<br><small><a href=# onclick='pycmd(\"hidelots\")'>("
|
b=("<br><small><a href=# onclick='return pycmd(\"hidelots\")'>("
|
||||||
"%s)</a></small>" % (_("hide"))+
|
"%s)</a></small>" % (_("hide"))+
|
||||||
"</div>")))
|
"</div>")))
|
||||||
|
|
||||||
|
|
@ -166,7 +166,7 @@ where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
|
||||||
buf = "<tr class='%s' id='%d'>" % (klass, did)
|
buf = "<tr class='%s' id='%d'>" % (klass, did)
|
||||||
# deck link
|
# deck link
|
||||||
if children:
|
if children:
|
||||||
collapse = "<a class=collapse href=# onclick='pycmd(\"collapse:%d\")'>%s</a>" % (did, prefix)
|
collapse = "<a class=collapse href=# onclick='return pycmd(\"collapse:%d\")'>%s</a>" % (did, prefix)
|
||||||
else:
|
else:
|
||||||
collapse = "<span class=collapse></span>"
|
collapse = "<span class=collapse></span>"
|
||||||
if deck['dyn']:
|
if deck['dyn']:
|
||||||
|
|
@ -189,7 +189,7 @@ where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
|
||||||
nonzeroColour(due, "#007700"),
|
nonzeroColour(due, "#007700"),
|
||||||
nonzeroColour(new, "#000099"))
|
nonzeroColour(new, "#000099"))
|
||||||
# options
|
# options
|
||||||
buf += ("<td align=center class=opts><a onclick='pycmd(\"opts:%d\");'>"
|
buf += ("<td align=center class=opts><a onclick='return pycmd(\"opts:%d\");'>"
|
||||||
"<img src='/_anki/imgs/gears.svg' class=gears></a></td></tr>" % did)
|
"<img src='/_anki/imgs/gears.svg' class=gears></a></td></tr>" % did)
|
||||||
# children
|
# children
|
||||||
buf += self._renderDeckTree(children, depth+1)
|
buf += self._renderDeckTree(children, depth+1)
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ class Toolbar:
|
||||||
buf = ""
|
buf = ""
|
||||||
for ln, name, title in links:
|
for ln, name, title in links:
|
||||||
buf += '''
|
buf += '''
|
||||||
<a class=hitem aria-label="%s" title="%s" href=# onclick="pycmd('%s')">%s</a>''' % (
|
<a class=hitem aria-label="%s" title="%s" href=# onclick="return pycmd('%s')">%s</a>''' % (
|
||||||
name, title, ln, name)
|
name, title, ln, name)
|
||||||
return buf
|
return buf
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue