mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
prevent find duplicates scrolling to top on link click
This commit is contained in:
parent
1dccd7c8d7
commit
a617be1779
1 changed files with 1 additions and 1 deletions
|
@ -1750,7 +1750,7 @@ update cards set usn=?, mod=?, did=? where id in """ + scids,
|
||||||
t += _("Found %(a)s across %(b)s.") % dict(a=part1, b=part2)
|
t += _("Found %(a)s across %(b)s.") % dict(a=part1, b=part2)
|
||||||
t += "<p><ol>"
|
t += "<p><ol>"
|
||||||
for val, nids in res:
|
for val, nids in res:
|
||||||
t += '''<li><a href=# onclick="pycmd('%s')">%s</a>: %s</a>''' % (
|
t += '''<li><a href=# onclick="pycmd('%s');return false;">%s</a>: %s</a>''' % (
|
||||||
"nid:" + ",".join(str(id) for id in nids),
|
"nid:" + ",".join(str(id) for id in nids),
|
||||||
ngettext("%d note", "%d notes", len(nids)) % len(nids),
|
ngettext("%d note", "%d notes", len(nids)) % len(nids),
|
||||||
html.escape(val))
|
html.escape(val))
|
||||||
|
|
Loading…
Reference in a new issue