www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 20dd8c89d8ea2ac8035165d336800f9b553b2311
parent 3a058c68ed8a4584c7de6724e7dcdf44b319148d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue,  9 Dec 2014 19:18:41 -0500

Remove "CSL" column in Cite -> Styles preferences

Diffstat:
Mchrome/content/zotero/preferences/preferences_cite.js | 6------
Mchrome/content/zotero/preferences/preferences_cite.xul | 5++---
Mchrome/skin/default/zotero/preferences.css | 4++--
3 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/chrome/content/zotero/preferences/preferences_cite.js b/chrome/content/zotero/preferences/preferences_cite.js @@ -66,7 +66,6 @@ Zotero_Preferences.Cite = { var treerow = document.createElement('treerow'); var titleCell = document.createElement('treecell'); var updatedCell = document.createElement('treecell'); - var cslCell = document.createElement('treecell'); if (style.updated) { 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); titleCell.setAttribute('label', style.title); updatedCell.setAttribute('label', updatedDate); - // if not EN - if(style.type == "csl") { - cslCell.setAttribute('src', 'chrome://zotero/skin/tick.png'); - } treerow.appendChild(titleCell); treerow.appendChild(updatedCell); - treerow.appendChild(cslCell); treeitem.appendChild(treerow); treechildren.appendChild(treeitem); diff --git a/chrome/content/zotero/preferences/preferences_cite.xul b/chrome/content/zotero/preferences/preferences_cite.xul @@ -58,9 +58,8 @@ onselect="document.getElementById('styleManager-delete').disabled = undefined" onkeypress="if (event.keyCode == event.DOM_VK_DELETE) { Zotero_Preferences.Cite.deleteSelectedStyle(); }"> <treecols> - <treecol id="styleManager-title" label="&zotero.preferences.cite.styles.styleManager.title;" flex="3"/> - <treecol id="styleManager-updated" label="&zotero.preferences.cite.styles.styleManager.updated;" flex="1"/> - <treecol id="styleManager-csl" label="&zotero.preferences.cite.styles.styleManager.csl;"/> + <treecol id="styleManager-title" label="&zotero.preferences.cite.styles.styleManager.title;" flex="1"/> + <treecol id="styleManager-updated" label="&zotero.preferences.cite.styles.styleManager.updated;"/> </treecols> <treechildren id="styleManager-rows"/> </tree> diff --git a/chrome/skin/default/zotero/preferences.css b/chrome/skin/default/zotero/preferences.css @@ -247,9 +247,9 @@ grid row hbox:first-child -moz-box-align: center; } -#styleManager-csl +#styleManager-updated { - width: 36px; + width: 105px; } #zotero-prefpane-keys textbox