From 557a195b12164b3e3f783eeb18a4d1c02ebf15cd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 18 Dec 2009 11:29:03 +0000 Subject: [PATCH] Closes #582, Ability to reorder creators I am nothing if not a man of the people. Uses an old suggestion from Andrew Moylan from the forums (http://forums.zotero.org/discussion/514/change-order-of-authors/): "Move Up" and "Move Down" options in the creator type menu. Dragging would be preferable but considerably more difficult, so this will have to do for now. --- chrome/content/zotero/bindings/itembox.xml | 72 ++++++++++++++++++++-- 1 file changed, 67 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index f7a527923..9a840c1e4 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -502,6 +502,21 @@ menuitem.setAttribute("typeid", Zotero.CreatorTypes.getID(i)); this._creatorTypeMenu.appendChild(menuitem); } + + var moveSep = document.createElement("menuseparator"); + var moveUp = document.createElement("menuitem"); + var moveDown = document.createElement("menuitem"); + moveSep.id = "zotero-creator-move-sep"; + moveUp.id = "zotero-creator-move-up"; + moveDown.id = "zotero-creator-move-down"; + moveUp.className = "zotero-creator-move"; + moveDown.className = "zotero-creator-move"; + // TODO: localize + moveUp.setAttribute("label", "Move Up"); + moveDown.setAttribute("label", "Move Down"); + this._creatorTypeMenu.appendChild(moveSep); + this._creatorTypeMenu.appendChild(moveUp); + this._creatorTypeMenu.appendChild(moveDown); } // Creator rows @@ -1974,6 +1989,33 @@ + + + + + + + + +