1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Model bind will trigger when typeahead is selected

This commit is contained in:
Mark McDowall 2014-05-17 23:12:57 -07:00
parent 34ca5d4014
commit 35c618d81b
2 changed files with 2 additions and 3 deletions

View File

@ -20,7 +20,7 @@ define(
}
var options = {
changeTriggers: {'': 'change', '[contenteditable]': 'blur', '[data-onkeyup]': 'keyup'}
changeTriggers: {'': 'change typeahead:selected typeahead:autocompleted', '[contenteditable]': 'blur', '[data-onkeyup]': 'keyup'}
};
this._modelBinder.bind(this.model, this.el, null, options);

View File

@ -2,9 +2,8 @@
define(
[
'jquery',
'underscore',
'typeahead'
], function ($, _) {
], function ($) {
$.fn.autoComplete = function (resource) {
$(this).typeahead({