Lines Matching refs:option

33       var group_position, option, _i, _len, _ref, _results;
47 option = _ref[_i];
48 _results.push(this.add_option(option, group_position, group.disabled));
53 SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
54 if (option.nodeName.toUpperCase() === "OPTION") {
55 if (option.text !== "") {
62 value: option.value,
63 text: option.text,
64 html: option.innerHTML,
65 title: option.title ? option.title : void 0,
66 selected: option.selected,
67 disabled: group_disabled === true ? group_disabled : option.disabled,
70 classes: option.className,
71 style: option.style.cssText
236 AbstractChosen.prototype.result_add_option = function(option) {
238 if (!option.search_match) {
241 if (!this.include_option_in_results(option)) {
245 if (!option.disabled && !(option.selected && this.is_multiple)) {
248 if (option.disabled && !(option.selected && this.is_multiple)) {
251 if (option.selected) {
254 if (option.group_array_index != null) {
255 classes.push("group-option");
257 if (option.classes !== "") {
258 classes.push(option.classes);
262 option_el.style.cssText = option.style;
263 option_el.setAttribute("data-option-array-index", option.array_index);
264 option_el.innerHTML = option.search_text;
265 if (option.title) {
266 option_el.title = option.title;
337 var escapedSearchText, option, regex, results, results_group, searchText, startpos, text, zregex, _i, _len, _ref;
346 option = _ref[_i];
347 option.search_match = false;
349 if (this.include_option_in_results(option)) {
350 if (option.group) {
351 option.group_match = false;
352 option.active_options = 0;
354 if ((option.group_array_index != null) && this.results_data[option.group_array_index]) {
355 results_group = this.results_data[option.group_array_index];
361 option.search_text = option.group ? option.label : option.html;
362 if (!(option.group && !this.group_search)) {
363 option.search_match = this.search_string_match(option.search_text, regex);
364 if (option.search_match && !option.group) {
367 if (option.search_match) {
369 startpos = option.search_text.search(zregex);
370 text = option.search_text.substr(0, startpos + searchText.length) + '</em>' + option.search_text.substr(startpos + searchText.length);
371 option.search_text = text.substr(0, startpos) + '<em>' + text.substr(startpos);
376 } else if ((option.group_array_index != null) && this.results_data[option.group_array_index].search_match) {
377 option.search_match = true;
416 var option, _i, _len, _ref;
423 option = _ref[_i];
424 if (option.selected) {
489 AbstractChosen.prototype.include_option_in_results = function(option) {
490 if (this.is_multiple && (!this.display_selected_options && option.selected)) {
493 if (!this.display_disabled_options && option.disabled) {
496 if (option.empty) {
975 'data-option-array-index': item.array_index
994 if (this.result_deselect(link[0].getAttribute("data-option-array-index"))) {
1038 item = this.results_data[high[0].getAttribute("data-option-array-index")];