mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 00:58:48 +02:00
N°3657 - Replace calls to deprecate jQuery methods (".blur(callback)" to ".on('blur', callback)")
This commit is contained in:
@@ -186,11 +186,11 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
|
||||
.appendTo(ul);
|
||||
};
|
||||
|
||||
$('#label_'+me.id).focus(function () {
|
||||
$('#label_'+me.id).on('focus', function () {
|
||||
// track whether the field has focus, we shouldn't process any
|
||||
// results if the field no longer has focus
|
||||
hasFocus++;
|
||||
}).blur(function () {
|
||||
}).on('blur', function () {
|
||||
hasFocus = 0;
|
||||
if ($('#label_'+me.id).val().length == 0) {
|
||||
eval('oACWidget_'+me.id).Clear();
|
||||
|
||||
Reference in New Issue
Block a user