commit 25f8b8350c0416294be8cc73d386de20c0839d13 parent 405c5114b8a3c29a6c1f698e2480b685c99a28a1 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 21 Oct 2008 19:19:18 +0000 Fix broken note window when opened without an associated item Diffstat:
| M | chrome/content/zotero/bindings/noteeditor.xml | | | 3 | +++ |
| M | 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 @@ -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 @@ -66,14 +66,6 @@ }; ]]></constructor> - <!-- Called when iframe browser is loaded. Until the browser is loaded, we can't do - anything with it, so we just keep track of what's supposed to - happen. --> - <method name="_iframeLoaded"> - <body><![CDATA[ - ]]></body> - </method> - <property name="mode"> <getter><![CDATA[ if (!this._mode) {