From 25f8b8350c0416294be8cc73d386de20c0839d13 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 21 Oct 2008 19:19:18 +0000 Subject: [PATCH] Fix broken note window when opened without an associated item --- chrome/content/zotero/bindings/noteeditor.xml | 3 +++ chrome/content/zotero/bindings/styled-textbox.xml | 8 -------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/chrome/content/zotero/bindings/noteeditor.xml b/chrome/content/zotero/bindings/noteeditor.xml index 341117c6c..fb4307b5c 100644 --- a/chrome/content/zotero/bindings/noteeditor.xml +++ b/chrome/content/zotero/bindings/noteeditor.xml @@ -159,6 +159,9 @@ if (this.item) { textbox.value = this.item.getNote(); } + else { + textbox.value = '' + } //textbox.inputField.scrollTop = scrollPos; this._id('linksbox').hidden = !(this.displayTags && this.displayRelated); diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index 7a90c4dd4..a56f32fe4 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -66,14 +66,6 @@ }; ]]> - - - - -