Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/admin_templates/js/ajax_dropdown.js
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | |||||
this.Box.style.overflow = 'auto'; | this.Box.style.overflow = 'auto'; | ||||
this.Box.className = 'suggest-box'; | this.Box.className = 'suggest-box'; | ||||
// add onkeyup | // add onkeyup | ||||
var obj = this; | var obj = this; | ||||
$(this.Input) | $(this.Input) | ||||
.attr('autocomplete', 'off') | .attr('autocomplete', 'off') | ||||
.keydown ( | |||||
function($e) { | |||||
if ($e.keyCode == 13) { | |||||
return false; | |||||
} | |||||
} | |||||
) | |||||
.keyup ( function(ev) { obj.KeyUp(ev) } ) | .keyup ( function(ev) { obj.KeyUp(ev) } ) | ||||
.blur ( function(ev) { obj.Blur(ev) } ); | .blur ( function(ev) { obj.Blur(ev) } ); | ||||
$(this.Box) | $(this.Box) | ||||
.scroll( | .scroll( | ||||
function(ev) { | function(ev) { | ||||
if (obj.BlurWaiting) { | if (obj.BlurWaiting) { | ||||
window.clearTimeout(obj.BlurTimer); | window.clearTimeout(obj.BlurTimer); | ||||
▲ Show 20 Lines • Show All 413 Lines • Show Last 20 Lines |