Addresses #502, Special handling for automatic tags
- Localize "Show automatic" in tag selector - Remove debug line
This commit is contained in:
parent
8fd25fc6a8
commit
6671af4918
|
@ -181,7 +181,6 @@
|
||||||
// If the last tag was the same, add this tagID and tagType to it
|
// If the last tag was the same, add this tagID and tagType to it
|
||||||
if (tagsToggleBox.lastChild &&
|
if (tagsToggleBox.lastChild &&
|
||||||
tagsToggleBox.lastChild.getAttribute('value') == this._tags[tagID].tag) {
|
tagsToggleBox.lastChild.getAttribute('value') == this._tags[tagID].tag) {
|
||||||
Zotero.debug(this._tags[tagID].tag);
|
|
||||||
tagsToggleBox.lastChild.setAttribute('tagID', tagsToggleBox.lastChild.getAttribute('tagID') + '-' + tagID);
|
tagsToggleBox.lastChild.setAttribute('tagID', tagsToggleBox.lastChild.getAttribute('tagID') + '-' + tagID);
|
||||||
tagsToggleBox.lastChild.setAttribute('tagType', tagsToggleBox.lastChild.getAttribute('tagType') + '-' + this._tags[tagID].type);
|
tagsToggleBox.lastChild.setAttribute('tagType', tagsToggleBox.lastChild.getAttribute('tagType') + '-' + this._tags[tagID].type);
|
||||||
continue;
|
continue;
|
||||||
|
@ -654,7 +653,7 @@
|
||||||
<xul:toolbarbutton id="view-settings-menu" tooltiptext="&zotero.toolbar.actions.label;"
|
<xul:toolbarbutton id="view-settings-menu" tooltiptext="&zotero.toolbar.actions.label;"
|
||||||
image="chrome://zotero/skin/tag-selector-menu.png" type="menu">
|
image="chrome://zotero/skin/tag-selector-menu.png" type="menu">
|
||||||
<xul:menupopup id="view-settings-popup">
|
<xul:menupopup id="view-settings-popup">
|
||||||
<xul:menuitem id="show-automatic" label="Show automatic" autocheck="true" type="checkbox"
|
<xul:menuitem id="show-automatic" label="&zotero.tagSelector.showAutomatic;" autocheck="true" type="checkbox"
|
||||||
oncommand="var ts = this.parentNode.parentNode.parentNode.parentNode.parentNode; ts._dirty = true; ts.setAttribute('showAutomatic', this.getAttribute('checked') == 'true')"/>
|
oncommand="var ts = this.parentNode.parentNode.parentNode.parentNode.parentNode; ts._dirty = true; ts.setAttribute('showAutomatic', this.getAttribute('checked') == 'true')"/>
|
||||||
</xul:menupopup>
|
</xul:menupopup>
|
||||||
</xul:toolbarbutton>
|
</xul:toolbarbutton>
|
||||||
|
|
|
@ -57,6 +57,7 @@
|
||||||
|
|
||||||
<!ENTITY zotero.tagSelector.noTagsToDisplay "No tags to display">
|
<!ENTITY zotero.tagSelector.noTagsToDisplay "No tags to display">
|
||||||
<!ENTITY zotero.tagSelector.filter "Filter:">
|
<!ENTITY zotero.tagSelector.filter "Filter:">
|
||||||
|
<!ENTITY zotero.tagSelector.showAutomatic "Show automatic">
|
||||||
<!ENTITY zotero.tagSelector.displayAll "Display all tags">
|
<!ENTITY zotero.tagSelector.displayAll "Display all tags">
|
||||||
<!ENTITY zotero.tagSelector.selectVisible "Select visible">
|
<!ENTITY zotero.tagSelector.selectVisible "Select visible">
|
||||||
<!ENTITY zotero.tagSelector.clearVisible "Deselect visible">
|
<!ENTITY zotero.tagSelector.clearVisible "Deselect visible">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user