parent
a315e4eced
commit
eecd625298
1 changed files with 9 additions and 2 deletions
|
@ -1462,7 +1462,11 @@
|
|||
params.creatorTypeID = creatorTypeID;
|
||||
}
|
||||
|
||||
// Return
|
||||
t.setAttribute('ontextentered',
|
||||
'document.getBindingParent(this).handleCreatorAutoCompleteSelect(this, true)');
|
||||
// Tab/Shift-Tab
|
||||
t.setAttribute('onchange',
|
||||
'document.getBindingParent(this).handleCreatorAutoCompleteSelect(this)');
|
||||
};
|
||||
t.setAttribute(
|
||||
|
@ -1517,6 +1521,7 @@
|
|||
-->
|
||||
<method name="handleCreatorAutoCompleteSelect">
|
||||
<parameter name="textbox"/>
|
||||
<parameter name="noAdvance"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
var comment = false;
|
||||
|
@ -1545,8 +1550,10 @@
|
|||
textbox.getAttribute('fieldname').split('-');
|
||||
|
||||
// Stay focused
|
||||
this._lastTabIndex = parseInt(textbox.getAttribute('ztabindex')) - 1;
|
||||
this._tabDirection = 1;
|
||||
if (noAdvance) {
|
||||
this._lastTabIndex = parseInt(textbox.getAttribute('ztabindex')) - 1;
|
||||
this._tabDirection = 1;
|
||||
}
|
||||
|
||||
var creator = Zotero.Creators.get(creatorID);
|
||||
|
||||
|
|
Loading…
Reference in a new issue