From 66729ed1e20f297ea500390bfc75c5a74c60bbd6 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 30 Sep 2006 22:53:01 +0000 Subject: [PATCH] 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) --- .../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 index d5cea5573..f4d2ef988 100644 --- 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()