We'll start without automatically adding quotes -- might be handy, but there's the problem of double-quoting text with existing double quotes, and without a manual collation function they all end up sorted to the top

We'll see what the feedback is.
This commit is contained in:
Dan Stillman 2006-10-25 04:34:34 +00:00
parent 65ef6a6926
commit ef8cd4a5e6

View File

@ -779,7 +779,7 @@ var ZoteroPane = new function()
catch (e){} catch (e){}
if (text) if (text)
{ {
note.value = '"' + text + '"'; note.value = text;
} }
note.save(); note.save();
note.focus(); note.focus();
@ -824,7 +824,7 @@ var ZoteroPane = new function()
if (itemsView.selection.count == 1 && items[0] && items[0].isNote()) if (itemsView.selection.count == 1 && items[0] && items[0].isNote())
{ {
var note = items[0].getNote() var note = items[0].getNote()
items[0].updateNote(note + "\n\n" + '"' + text + '"'); items[0].updateNote(note + "\n\n" + text);
var noteElem = document.getElementById('zotero-note-editor') var noteElem = document.getElementById('zotero-note-editor')
noteElem.focus(); noteElem.focus();
noteElem.id('noteField').inputField.editor. noteElem.id('noteField').inputField.editor.