Remove "CSL" column in Cite -> Styles preferences
This commit is contained in:
parent
3a058c68ed
commit
20dd8c89d8
3 changed files with 4 additions and 11 deletions
|
@ -66,7 +66,6 @@ Zotero_Preferences.Cite = {
|
||||||
var treerow = document.createElement('treerow');
|
var treerow = document.createElement('treerow');
|
||||||
var titleCell = document.createElement('treecell');
|
var titleCell = document.createElement('treecell');
|
||||||
var updatedCell = document.createElement('treecell');
|
var updatedCell = document.createElement('treecell');
|
||||||
var cslCell = document.createElement('treecell');
|
|
||||||
|
|
||||||
if (style.updated) {
|
if (style.updated) {
|
||||||
var updatedDate = Zotero.Date.formatDate(Zotero.Date.strToDate(style.updated), true);
|
var updatedDate = Zotero.Date.formatDate(Zotero.Date.strToDate(style.updated), true);
|
||||||
|
@ -78,14 +77,9 @@ Zotero_Preferences.Cite = {
|
||||||
treeitem.setAttribute('id', 'zotero-csl-' + style.styleID);
|
treeitem.setAttribute('id', 'zotero-csl-' + style.styleID);
|
||||||
titleCell.setAttribute('label', style.title);
|
titleCell.setAttribute('label', style.title);
|
||||||
updatedCell.setAttribute('label', updatedDate);
|
updatedCell.setAttribute('label', updatedDate);
|
||||||
// if not EN
|
|
||||||
if(style.type == "csl") {
|
|
||||||
cslCell.setAttribute('src', 'chrome://zotero/skin/tick.png');
|
|
||||||
}
|
|
||||||
|
|
||||||
treerow.appendChild(titleCell);
|
treerow.appendChild(titleCell);
|
||||||
treerow.appendChild(updatedCell);
|
treerow.appendChild(updatedCell);
|
||||||
treerow.appendChild(cslCell);
|
|
||||||
treeitem.appendChild(treerow);
|
treeitem.appendChild(treerow);
|
||||||
treechildren.appendChild(treeitem);
|
treechildren.appendChild(treeitem);
|
||||||
|
|
||||||
|
|
|
@ -58,9 +58,8 @@
|
||||||
onselect="document.getElementById('styleManager-delete').disabled = undefined"
|
onselect="document.getElementById('styleManager-delete').disabled = undefined"
|
||||||
onkeypress="if (event.keyCode == event.DOM_VK_DELETE) { Zotero_Preferences.Cite.deleteSelectedStyle(); }">
|
onkeypress="if (event.keyCode == event.DOM_VK_DELETE) { Zotero_Preferences.Cite.deleteSelectedStyle(); }">
|
||||||
<treecols>
|
<treecols>
|
||||||
<treecol id="styleManager-title" label="&zotero.preferences.cite.styles.styleManager.title;" flex="3"/>
|
<treecol id="styleManager-title" label="&zotero.preferences.cite.styles.styleManager.title;" flex="1"/>
|
||||||
<treecol id="styleManager-updated" label="&zotero.preferences.cite.styles.styleManager.updated;" flex="1"/>
|
<treecol id="styleManager-updated" label="&zotero.preferences.cite.styles.styleManager.updated;"/>
|
||||||
<treecol id="styleManager-csl" label="&zotero.preferences.cite.styles.styleManager.csl;"/>
|
|
||||||
</treecols>
|
</treecols>
|
||||||
<treechildren id="styleManager-rows"/>
|
<treechildren id="styleManager-rows"/>
|
||||||
</tree>
|
</tree>
|
||||||
|
|
|
@ -247,9 +247,9 @@ grid row hbox:first-child
|
||||||
-moz-box-align: center;
|
-moz-box-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#styleManager-csl
|
#styleManager-updated
|
||||||
{
|
{
|
||||||
width: 36px;
|
width: 105px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zotero-prefpane-keys textbox
|
#zotero-prefpane-keys textbox
|
||||||
|
|
Loading…
Reference in a new issue