mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 09:56:15 -04:00
toolbar: show the "save revision" button only on the right toolbar.
Revision b480416375
fixed a bug, but introduced a regression, and the "save
revision" "star" button started to appear both on the left and the right
toolbar.
This change introduces a flag "whichMenu" in toolbar.menu(), that controls
whether the left, the right or the timeslider toolbar is being drawn.
This commit is contained in:
parent
463d7fb163
commit
0d2854571d
3 changed files with 10 additions and 6 deletions
|
@ -64,12 +64,12 @@
|
|||
|
||||
<ul class="menu_left" role="toolbar">
|
||||
<% e.begin_block("editbarMenuLeft"); %>
|
||||
<%- toolbar.menu(settings.toolbar.left, isReadOnly) %>
|
||||
<%- toolbar.menu(settings.toolbar.left, isReadOnly, 'left') %>
|
||||
<% e.end_block(); %>
|
||||
</ul>
|
||||
<ul class="menu_right" role="toolbar">
|
||||
<% e.begin_block("editbarMenuRight"); %>
|
||||
<%- toolbar.menu(settings.toolbar.right, isReadOnly) %>
|
||||
<%- toolbar.menu(settings.toolbar.right, isReadOnly, 'right') %>
|
||||
<% e.end_block(); %>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
<div class="editbarright toolbar" id="editbar">
|
||||
<% e.begin_block("timesliderEditbarRight"); %>
|
||||
<ul>
|
||||
<%- toolbar.menu(settings.toolbar.timeslider, true) %>
|
||||
<%- toolbar.menu(settings.toolbar.timeslider, true, 'timeslider-right') %>
|
||||
</ul>
|
||||
<% e.end_block(); %>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue