Clean up temporary note slider

This commit is contained in:
Dan Stillman 2020-10-27 13:41:58 -04:00
parent 8e3dc61070
commit b2b9be381e
3 changed files with 8 additions and 6 deletions

View file

@ -502,12 +502,12 @@ var ZoteroItemPane = new function() {
document.getElementById('temp-toggle-1').firstChild.remove();
document.getElementById('temp-toggle-2').firstChild.remove();
if (value == 0) {
document.getElementById('temp-toggle-1').append('(Slider)__________');
document.getElementById('temp-toggle-2').append('(Slider)__________');
document.getElementById('temp-toggle-1').append('■ □');
document.getElementById('temp-toggle-2').append('■ □');
}
else {
document.getElementById('temp-toggle-1').append('__________(Slider)');
document.getElementById('temp-toggle-2').append('__________(Slider)');
document.getElementById('temp-toggle-1').append('□ ■');
document.getElementById('temp-toggle-2').append('□ ■');
}
mainDeck.selectedIndex = value;

View file

@ -35,7 +35,9 @@
<script src="itemPane.js"></script>
<vbox id="zotero-item-pane" zotero-persist="width height">
<hbox id="zotero-item-pane-padding-top" height="32" hidden="true" align="right"><button id="temp-toggle-2">(Slider)_______</button></hbox>
<hbox id="zotero-item-pane-padding-top" height="32" hidden="true" align="right">
<button id="temp-toggle-2" style="min-width: 37px; font-size: 16px;">■ □</button>
</hbox>
<deck id="zotero-item-pane-main-deck" flex="1" selectedIndex="0">
<deck id="zotero-item-pane-contextual-deck" selectedIndex="0">

View file

@ -214,7 +214,7 @@
<div xmlns="http://www.w3.org/1999/xhtml" class="sync-button-tooltip-messages"/>
</tooltip>
</toolbarbutton>
<button id="temp-toggle-1">(Slider)_______</button>
<button id="temp-toggle-1" style="min-width: 37px; font-size: 16px;">■ □</button>
</hbox>
</toolbar>