mirror of https://github.com/Radarr/Radarr
Model bind will trigger when typeahead is selected
This commit is contained in:
parent
34ca5d4014
commit
35c618d81b
|
@ -20,7 +20,7 @@ define(
|
||||||
}
|
}
|
||||||
|
|
||||||
var options = {
|
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);
|
this._modelBinder.bind(this.model, this.el, null, options);
|
||||||
|
|
|
@ -2,9 +2,8 @@
|
||||||
define(
|
define(
|
||||||
[
|
[
|
||||||
'jquery',
|
'jquery',
|
||||||
'underscore',
|
|
||||||
'typeahead'
|
'typeahead'
|
||||||
], function ($, _) {
|
], function ($) {
|
||||||
|
|
||||||
$.fn.autoComplete = function (resource) {
|
$.fn.autoComplete = function (resource) {
|
||||||
$(this).typeahead({
|
$(this).typeahead({
|
||||||
|
|
Loading…
Reference in New Issue