Created
May 12, 2012 04:14
-
-
Save a-ignatov-parc/2664099 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var suggest = target | |
.autocomplete({ | |
... | |
}) // Инициализируем у инпута автокомплит с набором параметров | |
.data('autocompleter'); // Сохраняем в переменную suggest объект автокомплита сохраненный в data атрибуте autocompleter за счет чейнинга | |
// Изменяем поведение метода position на нужное | |
suggest.position = function() { | |
var offset = this.dom.$elem.offset(); | |
this.dom.$results.css({ | |
bottom: Plca.view.partials.$body.height() - offset.top, | |
left: offset.left | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment