Don't try to show secondary sort menu in feeds

(Feeds don't have a visible primary sort column.)
This commit is contained in:
Dan Stillman 2016-04-01 04:17:47 -04:00
parent 842dea973b
commit 129b8113b9

View File

@ -2332,7 +2332,10 @@ Zotero.ItemTreeView.prototype.onColumnPickerShowing = function (event) {
Zotero.debug(e, 1); Zotero.debug(e, 1);
} }
//
// Secondary Sort menu // Secondary Sort menu
//
if (!this.collectionTreeRow.isFeed()) {
try { try {
let id = prefix + 'sort-menu'; let id = prefix + 'sort-menu';
let primaryField = this.getSortField(); let primaryField = this.getSortField();
@ -2396,6 +2399,7 @@ Zotero.ItemTreeView.prototype.onColumnPickerShowing = function (event) {
Components.utils.reportError(e); Components.utils.reportError(e);
Zotero.debug(e, 1); Zotero.debug(e, 1);
} }
}
sep = doc.createElementNS(ns, 'menuseparator'); sep = doc.createElementNS(ns, 'menuseparator');
sep.setAttribute('anonid', prefix + 'sep'); sep.setAttribute('anonid', prefix + 'sep');