From 3e30066d891059f805487b0fc53bb6e1ee59e92f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 9 May 2011 08:11:18 +0000 Subject: [PATCH] - Don't display "+" and "-" tags as add/remove icons in the tag selector, as much as I like the idea of tags arbitrarily being turned into graphical representations - Use add/remove icons in advanced search window --- chrome/content/zotero/bindings/itembox.xml | 4 ++-- chrome/content/zotero/bindings/relatedbox.xml | 2 +- chrome/content/zotero/bindings/tagsbox.xml | 2 +- .../content/zotero/bindings/zoterosearch.xml | 4 ++-- chrome/content/zotero/itemPane.js | 2 +- chrome/skin/default/zotero/zotero.css | 24 +++++++++---------- 6 files changed, 18 insertions(+), 20 deletions(-) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index 8aff44a30..3c009313b 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -642,7 +642,7 @@ // Minus (-) button var removeButton = document.createElement('label'); removeButton.setAttribute("value","-"); - removeButton.setAttribute("class","zotero-clicky"); + removeButton.setAttribute("class","zotero-clicky zotero-clicky-minus"); // If default first row, don't let user remove it if (defaultRow) { this.disableButton(removeButton); @@ -658,7 +658,7 @@ // Plus (+) button var addButton = document.createElement('label'); addButton.setAttribute("value","+"); - addButton.setAttribute("class", "zotero-clicky"); + addButton.setAttribute("class", "zotero-clicky zotero-clicky-plus"); // If row isn't saved, don't let user add more if (unsaved) { this.disableButton(addButton); diff --git a/chrome/content/zotero/bindings/relatedbox.xml b/chrome/content/zotero/bindings/relatedbox.xml index 0dec936c5..ad165152b 100644 --- a/chrome/content/zotero/bindings/relatedbox.xml +++ b/chrome/content/zotero/bindings/relatedbox.xml @@ -149,7 +149,7 @@ remove.setAttribute('value','-'); remove.setAttribute('onclick', "document.getBindingParent(this).remove('" + related[i].id + "');"); - remove.setAttribute('class','zotero-clicky'); + remove.setAttribute('class','zotero-clicky zotero-clicky-minus'); } var row = document.createElement("row"); diff --git a/chrome/content/zotero/bindings/tagsbox.xml b/chrome/content/zotero/bindings/tagsbox.xml index 0b5d4c69b..11c4c25d4 100644 --- a/chrome/content/zotero/bindings/tagsbox.xml +++ b/chrome/content/zotero/bindings/tagsbox.xml @@ -187,7 +187,7 @@ if (this.editable) { var remove = document.createElement("label"); remove.setAttribute('value','-'); - remove.setAttribute('class','zotero-clicky'); + remove.setAttribute('class','zotero-clicky zotero-clicky-minus'); if (tagID) { remove.setAttribute('ztabindex', -1); diff --git a/chrome/content/zotero/bindings/zoterosearch.xml b/chrome/content/zotero/bindings/zoterosearch.xml index 10ec36a63..33f67c31d 100644 --- a/chrome/content/zotero/bindings/zoterosearch.xml +++ b/chrome/content/zotero/bindings/zoterosearch.xml @@ -698,8 +698,8 @@