mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Run filter on right buttons list
This commit is contained in:
parent
5051dcedb6
commit
4e4947bd92
1 changed files with 1 additions and 1 deletions
|
@ -458,6 +458,7 @@ class Editor(object):
|
|||
righttopbtns.append(self._addButton('paperclip', 'attach', "Attach pictures/audio/video (F3)"))
|
||||
righttopbtns.append(self._addButton('media-record', 'record', "Record audio (F5)"))
|
||||
righttopbtns.append(self._addButton('more', 'more'))
|
||||
righttopbtns = runFilter("setupEditorButtons", righttopbtns, self)
|
||||
topbuts = """
|
||||
<div id="topbutsleft" style="float:left;">
|
||||
<button onclick="pycmd('fields')">%(flds)s...</button>
|
||||
|
@ -467,7 +468,6 @@ class Editor(object):
|
|||
%(rightbts)s
|
||||
</div>
|
||||
""" % dict(flds=_("Fields"), cards=_("Cards"), rightbts="".join(righttopbtns))
|
||||
topbuts = runFilter("setupEditorButtons", topbuts)
|
||||
self.web.stdHtml(_html % (
|
||||
self.mw.baseHTML(), anki.js.jquery,
|
||||
topbuts,
|
||||
|
|
Loading…
Reference in a new issue