Lines Matching defs:result

770                 if ($(e.target).closest(".select2-result-selectable").length > 0) {
887 var i, l, result, selectable, disabled, compound, node, label, innerContainer, formatted;
893 result=results[i];
895 disabled = (result.disabled === true);
896 selectable = (!disabled) && (id(result) !== undefined);
898 compound=result.children && result.children.length > 0;
902 node.addClass("select2-result");
903 node.addClass(selectable ? "select2-result-selectable" : "select2-result-unselectable");
905 if (compound) { node.addClass("select2-result-with-children"); }
906 node.addClass(self.opts.formatResultCssClass(result));
910 label.addClass("select2-result-label");
911 label.attr("id", "select2-result-label-" + nextUid());
914 formatted=opts.formatResult(result, label, query, self.opts.escapeMarkup);
924 innerContainer.addClass("select2-result-sub");
925 populate(result.children, innerContainer, depth+1);
929 node.data("select2-data", result);
1448 children = this.findHighlightableChoices().find('.select2-result-label');
1476 return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)");
1487 if (choice.hasClass("select2-result-selectable") && !choice.hasClass("select2-disabled") && !choice.hasClass("select2-selected")) {
1513 this.search.attr("aria-activedescendant", choice.find(".select2-result-label").attr("id"));
1544 var el = $(event.target).closest(".select2-result-selectable");
1638 self.liveRegion.text(self.opts.formatMatches(results.find('.select2-result-selectable').length));
1781 data = highlighted.closest('.select2-result').data("select2-data");
2298 // find the selected element in the result list
2907 // initializes search's value with nextSearchTerm and update search result
3032 choices = this.results.find(".select2-result"),
3033 compound = this.results.find(".select2-result-with-children"),
3041 choice.find(".select2-result-selectable").addClass("select2-selected");
3047 if (!choice.is('.select2-result-selectable')
3048 && choice.find(".select2-result-selectable:not(.select2-selected)").length === 0) {
3058 if(!this.opts.createSearchChoice && !choices.filter('.select2-result:not(.select2-selected)').length > 0){
3321 formatResult: function(result, container, query, escapeMarkup) {
3323 markMatch(result.text, query.term, markup, escapeMarkup);