Lines Matching refs:el

262     function focus($el) {
263 if ($el[0] === document.activeElement) return;
269 var el=$el[0], pos=$el.val().length, range;
271 $el.focus();
273 /* make sure el received focus so we do not error out when trying to manipulate the caret.
275 var isVisible = (el.offsetWidth > 0 || el.offsetHeight > 0);
276 if (isVisible && el === document.activeElement) {
280 if(el.setSelectionRange)
282 el.setSelectionRange(pos, pos);
284 else if (el.createTextRange) {
285 range = el.createTextRange();
293 function getCursorInfo(el) {
294 el = $(el)[0];
297 if ('selectionStart' in el) {
298 offset = el.selectionStart;
299 length = el.selectionEnd - offset;
301 el.focus();
304 sel.moveStart('character', -el.value.length);
1044 var el = this.opts.element, sync, observer;
1046 el.on("change.select2", this.bind(function (e) {
1055 var disabled = el.prop("disabled");
1059 var readonly = el.prop("readonly");
1072 el.on("propertychange.select2", sync);
1086 this.propertyObserver.observe(el.get(0), { attributes:true, subtree:false });
1544 var el = $(event.target).closest(".select2-result-selectable");
1545 if (el.length > 0 && !el.is(".select2-highlighted")) {
1547 this.highlight(choices.index(el));
1548 } else if (el.length == 0) {
1904 var el, range, len;
1921 el = this.search.get(0);
1922 if (el.createTextRange) {
1923 range = el.createTextRange();
1926 } else if (el.setSelectionRange) {
1928 el.setSelectionRange(len, len);
2248 matcher: function(term, text, el){
2249 var is_match = equal(id, opts.id(el));
2251 match = el;
2518 matcher: function(term, text, el){
2520 return equal(id, opts.id(el));
2523 matches.push(el);