www

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

commit e305dff5982ee25d3a8393b31e4fffb1034a8cb3
parent 1c429dc33cef8a60641f5907c8a1129f3e63b4de
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 29 May 2009 21:38:31 +0000

Allow possibly useless multi-character delimiters, so that ahoward stops bothering me


Diffstat:
Mchrome/content/zotero/longTagFixer.js | 1+
Mchrome/content/zotero/longTagFixer.xul | 7++++---
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/longTagFixer.js b/chrome/content/zotero/longTagFixer.js @@ -4,6 +4,7 @@ var Zotero_Long_Tag_Fixer = new function () { this.init = function () { document.getElementById('zotero-old-tag').value = _oldTag; + document.getElementById('zotero-old-tag-delimiter').nextSibling.value = 'character'; // TODO: localize var lastMode = Zotero.Prefs.get('lastLongTagMode'); if (!lastMode) { diff --git a/chrome/content/zotero/longTagFixer.xul b/chrome/content/zotero/longTagFixer.xul @@ -36,9 +36,10 @@ <vbox> <hbox align="center"> <label>Split at the </label> - <textbox id="zotero-old-tag-delimiter" size="1" maxlength="1" value=";" - oninput="Zotero_Long_Tag_Fixer.updateTagList()"/> - <label>character</label> + <!-- // TODO: localize --> + <textbox id="zotero-old-tag-delimiter" size="1" value=";" + oninput="this.nextSibling.value = this.value.length > 1 ? 'characters' : 'character'; Zotero_Long_Tag_Fixer.updateTagList();"/> + <label/> </hbox> <separator class="thin"/>