Addresses #283, Autocomplete broken in Firefox 3
Better place for workaround
This commit is contained in:
parent
e7ea7ed610
commit
234f2dcdb4
|
@ -1131,10 +1131,6 @@ var ZoteroItemPane = new function()
|
|||
// If result uses two fields, save both
|
||||
if (numFields==2)
|
||||
{
|
||||
// Manually clear autocomplete controller's reference to
|
||||
// textbox to prevent error next time around
|
||||
textbox.mController.input = null;
|
||||
|
||||
var [field, creatorIndex, creatorField] =
|
||||
textbox.getAttribute('fieldname').split('-');
|
||||
|
||||
|
@ -1274,6 +1270,12 @@ var ZoteroItemPane = new function()
|
|||
return;
|
||||
}
|
||||
|
||||
// Manually clear autocomplete controller's reference to
|
||||
// textbox to prevent error next time around
|
||||
if (textbox.mController && textbox.mController.input) {
|
||||
textbox.mController.input = null;
|
||||
}
|
||||
|
||||
var fieldName = textbox.getAttribute('fieldname');
|
||||
var tabindex = textbox.getAttribute('ztabindex');
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user