www

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

commit 66729ed1e20f297ea500390bfc75c5a74c60bbd6
parent 7fed86b38954a3808b22b10ebb2517b32abfc501
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat, 30 Sep 2006 22:53:01 +0000

Fix error that breaks the item tree after creating a new empty note from the new item menu

(ItemTreeView's getField() had a bug -- switched to just use Item.getField(), which already handles notes properly)


Diffstat:
Mchrome/chromeFiles/content/scholar/xpcom/itemTreeView.js | 17+----------------
1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/chrome/chromeFiles/content/scholar/xpcom/itemTreeView.js b/chrome/chromeFiles/content/scholar/xpcom/itemTreeView.js @@ -993,22 +993,7 @@ Scholar.ItemTreeView.TreeRow.prototype.isRegularItem = function() Scholar.ItemTreeView.TreeRow.prototype.getField = function(field) { - if(this.isNote() && field == 'title') - { - var t = this.ref.getNote(); - if(t) - { - var n = t.indexOf("\n"); - if(n > -1) - t = t.substring(0,n); - return t; - } - } - else - { - return this.ref.getField(field); - } - + return this.ref.getField(field); } Scholar.ItemTreeView.TreeRow.prototype.getType = function()