mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 17:05:46 +00:00
Merge branch 'seeddms-4.3.x' into seeddms-5.0.x
This commit is contained in:
commit
7568adb054
|
@ -8,6 +8,7 @@
|
||||||
- move the last bits of plain sql code from op/*.php into the core
|
- move the last bits of plain sql code from op/*.php into the core
|
||||||
- group manager uses ajax like user manager
|
- group manager uses ajax like user manager
|
||||||
- start to enforce content security policy
|
- start to enforce content security policy
|
||||||
|
- fixed possible XSS attack in user manager
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 4.3.22
|
Changes in version 4.3.22
|
||||||
|
|
|
@ -55,6 +55,7 @@ class SeedDMS_SQLiteFTS_Indexer {
|
||||||
* @param string $indexerDir directory on disk containing the index
|
* @param string $indexerDir directory on disk containing the index
|
||||||
*/
|
*/
|
||||||
static function create($indexerDir) { /* {{{ */
|
static function create($indexerDir) { /* {{{ */
|
||||||
|
if(file_exists($indexerDir.'/index.db'))
|
||||||
unlink($indexerDir.'/index.db');
|
unlink($indexerDir.'/index.db');
|
||||||
$index = new SeedDMS_SQLiteFTS_Indexer($indexerDir);
|
$index = new SeedDMS_SQLiteFTS_Indexer($indexerDir);
|
||||||
/* Make sure the sequence of fields is identical to the field list
|
/* Make sure the sequence of fields is identical to the field list
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
<email>uwe@steinmann.cx</email>
|
<email>uwe@steinmann.cx</email>
|
||||||
<active>yes</active>
|
<active>yes</active>
|
||||||
</lead>
|
</lead>
|
||||||
<date>2015-11-16</date>
|
<date>2016-01-10</date>
|
||||||
<time>09:07:07</time>
|
<time>09:07:07</time>
|
||||||
<version>
|
<version>
|
||||||
<release>1.0.1</release>
|
<release>1.0.2</release>
|
||||||
<api>1.0.1</api>
|
<api>1.0.1</api>
|
||||||
</version>
|
</version>
|
||||||
<stability>
|
<stability>
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
</stability>
|
</stability>
|
||||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
<notes>
|
<notes>
|
||||||
add __get() to SQLiteFTS_Document because class.IndexInfo.php access class variable title which doesn't exists
|
check if index exists before removing it when creating a new one
|
||||||
</notes>
|
</notes>
|
||||||
<contents>
|
<contents>
|
||||||
<dir baseinstalldir="SeedDMS" name="/">
|
<dir baseinstalldir="SeedDMS" name="/">
|
||||||
|
@ -82,5 +82,21 @@ add __get() to SQLiteFTS_Document because class.IndexInfo.php access class varia
|
||||||
initial release
|
initial release
|
||||||
</notes>
|
</notes>
|
||||||
</release>
|
</release>
|
||||||
|
<release>
|
||||||
|
<date>2015-11-16</date>
|
||||||
|
<time>09:07:07</time>
|
||||||
|
<version>
|
||||||
|
<release>1.0.1</release>
|
||||||
|
<api>1.0.1</api>
|
||||||
|
</version>
|
||||||
|
<stability>
|
||||||
|
<release>stable</release>
|
||||||
|
<api>stable</api>
|
||||||
|
</stability>
|
||||||
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
|
<notes>
|
||||||
|
add __get() to SQLiteFTS_Document because class.IndexInfo.php access class variable title which doesn't exists
|
||||||
|
</notes>
|
||||||
|
</release>
|
||||||
</changelog>
|
</changelog>
|
||||||
</package>
|
</package>
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
Chosen, a Select Box Enhancer for jQuery and Prototype
|
Chosen, a Select Box Enhancer for jQuery and Prototype
|
||||||
by Patrick Filler for Harvest, http://getharvest.com
|
by Patrick Filler for Harvest, http://getharvest.com
|
||||||
|
|
||||||
Version 1.3.0
|
Version 1.4.2
|
||||||
Full source at https://github.com/harvesthq/chosen
|
Full source at https://github.com/harvesthq/chosen
|
||||||
Copyright (c) 2011-2014 Harvest http://getharvest.com
|
Copyright (c) 2011-2015 Harvest http://getharvest.com
|
||||||
|
|
||||||
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
||||||
This file is generated by `grunt build`, do not edit it by hand.
|
This file is generated by `grunt build`, do not edit it by hand.
|
||||||
|
@ -44,6 +44,19 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
.chosen-container a {
|
.chosen-container a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.chosen-container .search-choice .group-name, .chosen-container .chosen-single .group-name {
|
||||||
|
margin-right: 4px;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
.chosen-container .search-choice .group-name:after, .chosen-container .chosen-single .group-name:after {
|
||||||
|
content: ":";
|
||||||
|
padding-left: 2px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
/* @end */
|
/* @end */
|
||||||
/* @group Single Chosen */
|
/* @group Single Chosen */
|
||||||
|
@ -421,7 +434,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
|
|
||||||
/* @end */
|
/* @end */
|
||||||
/* @group Retina compatibility */
|
/* @group Retina compatibility */
|
||||||
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
|
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) {
|
||||||
.chosen-rtl .chosen-search input[type="text"],
|
.chosen-rtl .chosen-search input[type="text"],
|
||||||
.chosen-container-single .chosen-single abbr,
|
.chosen-container-single .chosen-single abbr,
|
||||||
.chosen-container-single .chosen-single div b,
|
.chosen-container-single .chosen-single div b,
|
||||||
|
|
4
styles/bootstrap/chosen/css/chosen.min.css
vendored
4
styles/bootstrap/chosen/css/chosen.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -2,9 +2,9 @@
|
||||||
Chosen, a Select Box Enhancer for jQuery and Prototype
|
Chosen, a Select Box Enhancer for jQuery and Prototype
|
||||||
by Patrick Filler for Harvest, http://getharvest.com
|
by Patrick Filler for Harvest, http://getharvest.com
|
||||||
|
|
||||||
Version 1.3.0
|
Version 1.4.2
|
||||||
Full source at https://github.com/harvesthq/chosen
|
Full source at https://github.com/harvesthq/chosen
|
||||||
Copyright (c) 2011-2014 Harvest http://getharvest.com
|
Copyright (c) 2011-2015 Harvest http://getharvest.com
|
||||||
|
|
||||||
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
||||||
This file is generated by `grunt build`, do not edit it by hand.
|
This file is generated by `grunt build`, do not edit it by hand.
|
||||||
|
@ -36,6 +36,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
array_index: group_position,
|
array_index: group_position,
|
||||||
group: true,
|
group: true,
|
||||||
label: this.escapeExpression(group.label),
|
label: this.escapeExpression(group.label),
|
||||||
|
title: group.title ? group.title : void 0,
|
||||||
children: 0,
|
children: 0,
|
||||||
disabled: group.disabled,
|
disabled: group.disabled,
|
||||||
classes: group.className
|
classes: group.className
|
||||||
|
@ -61,9 +62,11 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
value: option.value,
|
value: option.value,
|
||||||
text: option.text,
|
text: option.text,
|
||||||
html: option.innerHTML,
|
html: option.innerHTML,
|
||||||
|
title: option.title ? option.title : void 0,
|
||||||
selected: option.selected,
|
selected: option.selected,
|
||||||
disabled: group_disabled === true ? group_disabled : option.disabled,
|
disabled: group_disabled === true ? group_disabled : option.disabled,
|
||||||
group_array_index: group_position,
|
group_array_index: group_position,
|
||||||
|
group_label: group_position != null ? this.parsed[group_position].label : null,
|
||||||
classes: option.className,
|
classes: option.className,
|
||||||
style: option.style.cssText
|
style: option.style.cssText
|
||||||
});
|
});
|
||||||
|
@ -152,7 +155,8 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
this.max_selected_options = this.options.max_selected_options || Infinity;
|
this.max_selected_options = this.options.max_selected_options || Infinity;
|
||||||
this.inherit_select_classes = this.options.inherit_select_classes || false;
|
this.inherit_select_classes = this.options.inherit_select_classes || false;
|
||||||
this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
|
this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
|
||||||
return this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
|
this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
|
||||||
|
return this.include_group_label_in_selected = this.options.include_group_label_in_selected || false;
|
||||||
};
|
};
|
||||||
|
|
||||||
AbstractChosen.prototype.set_default_text = function() {
|
AbstractChosen.prototype.set_default_text = function() {
|
||||||
|
@ -166,6 +170,14 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
|
return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
AbstractChosen.prototype.choice_label = function(item) {
|
||||||
|
if (this.include_group_label_in_selected && (item.group_label != null)) {
|
||||||
|
return "<b class='group-name'>" + item.group_label + "</b>" + item.html;
|
||||||
|
} else {
|
||||||
|
return item.html;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
AbstractChosen.prototype.mouse_enter = function() {
|
AbstractChosen.prototype.mouse_enter = function() {
|
||||||
return this.mouse_on_container = true;
|
return this.mouse_on_container = true;
|
||||||
};
|
};
|
||||||
|
@ -214,7 +226,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
if (data.selected && this.is_multiple) {
|
if (data.selected && this.is_multiple) {
|
||||||
this.choice_build(data);
|
this.choice_build(data);
|
||||||
} else if (data.selected && !this.is_multiple) {
|
} else if (data.selected && !this.is_multiple) {
|
||||||
this.single_set_selected_text(data.text);
|
this.single_set_selected_text(this.choice_label(data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -250,6 +262,9 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
option_el.style.cssText = option.style;
|
option_el.style.cssText = option.style;
|
||||||
option_el.setAttribute("data-option-array-index", option.array_index);
|
option_el.setAttribute("data-option-array-index", option.array_index);
|
||||||
option_el.innerHTML = option.search_text;
|
option_el.innerHTML = option.search_text;
|
||||||
|
if (option.title) {
|
||||||
|
option_el.title = option.title;
|
||||||
|
}
|
||||||
return this.outerHTML(option_el);
|
return this.outerHTML(option_el);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -269,6 +284,9 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
group_el = document.createElement("li");
|
group_el = document.createElement("li");
|
||||||
group_el.className = classes.join(" ");
|
group_el.className = classes.join(" ");
|
||||||
group_el.innerHTML = group.search_text;
|
group_el.innerHTML = group.search_text;
|
||||||
|
if (group.title) {
|
||||||
|
group_el.title = group.title;
|
||||||
|
}
|
||||||
return this.outerHTML(group_el);
|
return this.outerHTML(group_el);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -340,8 +358,8 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
}
|
}
|
||||||
results_group.active_options += 1;
|
results_group.active_options += 1;
|
||||||
}
|
}
|
||||||
|
option.search_text = option.group ? option.label : option.html;
|
||||||
if (!(option.group && !this.group_search)) {
|
if (!(option.group && !this.group_search)) {
|
||||||
option.search_text = option.group ? option.label : option.text;
|
|
||||||
option.search_match = this.search_string_match(option.search_text, regex);
|
option.search_match = this.search_string_match(option.search_text, regex);
|
||||||
if (option.search_match && !option.group) {
|
if (option.search_match && !option.group) {
|
||||||
results += 1;
|
results += 1;
|
||||||
|
@ -618,9 +636,11 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
var _this = this;
|
var _this = this;
|
||||||
this.container.bind('touchstart.chosen', function(evt) {
|
this.container.bind('touchstart.chosen', function(evt) {
|
||||||
_this.container_mousedown(evt);
|
_this.container_mousedown(evt);
|
||||||
|
return evt.preventDefault();
|
||||||
});
|
});
|
||||||
this.container.bind('touchend.chosen', function(evt) {
|
this.container.bind('touchend.chosen', function(evt) {
|
||||||
_this.container_mouseup(evt);
|
_this.container_mouseup(evt);
|
||||||
|
return evt.preventDefault();
|
||||||
});
|
});
|
||||||
this.container.bind('mousedown.chosen', function(evt) {
|
this.container.bind('mousedown.chosen', function(evt) {
|
||||||
_this.container_mousedown(evt);
|
_this.container_mousedown(evt);
|
||||||
|
@ -946,7 +966,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
_this = this;
|
_this = this;
|
||||||
choice = $('<li />', {
|
choice = $('<li />', {
|
||||||
"class": "search-choice"
|
"class": "search-choice"
|
||||||
}).html("<span>" + item.html + "</span>");
|
}).html("<span>" + (this.choice_label(item)) + "</span>");
|
||||||
if (item.disabled) {
|
if (item.disabled) {
|
||||||
choice.addClass('search-choice-disabled');
|
choice.addClass('search-choice-disabled');
|
||||||
} else {
|
} else {
|
||||||
|
@ -1014,6 +1034,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
} else {
|
} else {
|
||||||
this.reset_single_select_options();
|
this.reset_single_select_options();
|
||||||
}
|
}
|
||||||
|
high.addClass("result-selected");
|
||||||
item = this.results_data[high[0].getAttribute("data-option-array-index")];
|
item = this.results_data[high[0].getAttribute("data-option-array-index")];
|
||||||
item.selected = true;
|
item.selected = true;
|
||||||
this.form_field.options[item.options_index].selected = true;
|
this.form_field.options[item.options_index].selected = true;
|
||||||
|
@ -1021,7 +1042,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
if (this.is_multiple) {
|
if (this.is_multiple) {
|
||||||
this.choice_build(item);
|
this.choice_build(item);
|
||||||
} else {
|
} else {
|
||||||
this.single_set_selected_text(item.text);
|
this.single_set_selected_text(this.choice_label(item));
|
||||||
}
|
}
|
||||||
if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
|
if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
|
||||||
this.results_hide();
|
this.results_hide();
|
||||||
|
@ -1033,6 +1054,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.current_selectedIndex = this.form_field.selectedIndex;
|
this.current_selectedIndex = this.form_field.selectedIndex;
|
||||||
|
evt.preventDefault();
|
||||||
return this.search_field_scale();
|
return this.search_field_scale();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1047,7 +1069,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
this.single_deselect_control_build();
|
this.single_deselect_control_build();
|
||||||
this.selected_item.removeClass("chosen-default");
|
this.selected_item.removeClass("chosen-default");
|
||||||
}
|
}
|
||||||
return this.selected_item.find("span").text(text);
|
return this.selected_item.find("span").html(text);
|
||||||
};
|
};
|
||||||
|
|
||||||
Chosen.prototype.result_deselect = function(pos) {
|
Chosen.prototype.result_deselect = function(pos) {
|
||||||
|
@ -1082,11 +1104,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
};
|
};
|
||||||
|
|
||||||
Chosen.prototype.get_search_text = function() {
|
Chosen.prototype.get_search_text = function() {
|
||||||
if (this.search_field.val() === this.default_text) {
|
|
||||||
return "";
|
|
||||||
} else {
|
|
||||||
return $('<div/>').text($.trim(this.search_field.val())).html();
|
return $('<div/>').text($.trim(this.search_field.val())).html();
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Chosen.prototype.winnow_results_set_highlight = function() {
|
Chosen.prototype.winnow_results_set_highlight = function() {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2,9 +2,9 @@
|
||||||
Chosen, a Select Box Enhancer for jQuery and Prototype
|
Chosen, a Select Box Enhancer for jQuery and Prototype
|
||||||
by Patrick Filler for Harvest, http://getharvest.com
|
by Patrick Filler for Harvest, http://getharvest.com
|
||||||
|
|
||||||
Version 1.3.0
|
Version 1.4.2
|
||||||
Full source at https://github.com/harvesthq/chosen
|
Full source at https://github.com/harvesthq/chosen
|
||||||
Copyright (c) 2011-2014 Harvest http://getharvest.com
|
Copyright (c) 2011-2015 Harvest http://getharvest.com
|
||||||
|
|
||||||
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
||||||
This file is generated by `grunt build`, do not edit it by hand.
|
This file is generated by `grunt build`, do not edit it by hand.
|
||||||
|
@ -36,6 +36,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
array_index: group_position,
|
array_index: group_position,
|
||||||
group: true,
|
group: true,
|
||||||
label: this.escapeExpression(group.label),
|
label: this.escapeExpression(group.label),
|
||||||
|
title: group.title ? group.title : void 0,
|
||||||
children: 0,
|
children: 0,
|
||||||
disabled: group.disabled,
|
disabled: group.disabled,
|
||||||
classes: group.className
|
classes: group.className
|
||||||
|
@ -61,9 +62,11 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
value: option.value,
|
value: option.value,
|
||||||
text: option.text,
|
text: option.text,
|
||||||
html: option.innerHTML,
|
html: option.innerHTML,
|
||||||
|
title: option.title ? option.title : void 0,
|
||||||
selected: option.selected,
|
selected: option.selected,
|
||||||
disabled: group_disabled === true ? group_disabled : option.disabled,
|
disabled: group_disabled === true ? group_disabled : option.disabled,
|
||||||
group_array_index: group_position,
|
group_array_index: group_position,
|
||||||
|
group_label: group_position != null ? this.parsed[group_position].label : null,
|
||||||
classes: option.className,
|
classes: option.className,
|
||||||
style: option.style.cssText
|
style: option.style.cssText
|
||||||
});
|
});
|
||||||
|
@ -152,7 +155,8 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
this.max_selected_options = this.options.max_selected_options || Infinity;
|
this.max_selected_options = this.options.max_selected_options || Infinity;
|
||||||
this.inherit_select_classes = this.options.inherit_select_classes || false;
|
this.inherit_select_classes = this.options.inherit_select_classes || false;
|
||||||
this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
|
this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
|
||||||
return this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
|
this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
|
||||||
|
return this.include_group_label_in_selected = this.options.include_group_label_in_selected || false;
|
||||||
};
|
};
|
||||||
|
|
||||||
AbstractChosen.prototype.set_default_text = function() {
|
AbstractChosen.prototype.set_default_text = function() {
|
||||||
|
@ -166,6 +170,14 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
|
return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
AbstractChosen.prototype.choice_label = function(item) {
|
||||||
|
if (this.include_group_label_in_selected && (item.group_label != null)) {
|
||||||
|
return "<b class='group-name'>" + item.group_label + "</b>" + item.html;
|
||||||
|
} else {
|
||||||
|
return item.html;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
AbstractChosen.prototype.mouse_enter = function() {
|
AbstractChosen.prototype.mouse_enter = function() {
|
||||||
return this.mouse_on_container = true;
|
return this.mouse_on_container = true;
|
||||||
};
|
};
|
||||||
|
@ -214,7 +226,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
if (data.selected && this.is_multiple) {
|
if (data.selected && this.is_multiple) {
|
||||||
this.choice_build(data);
|
this.choice_build(data);
|
||||||
} else if (data.selected && !this.is_multiple) {
|
} else if (data.selected && !this.is_multiple) {
|
||||||
this.single_set_selected_text(data.text);
|
this.single_set_selected_text(this.choice_label(data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -250,6 +262,9 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
option_el.style.cssText = option.style;
|
option_el.style.cssText = option.style;
|
||||||
option_el.setAttribute("data-option-array-index", option.array_index);
|
option_el.setAttribute("data-option-array-index", option.array_index);
|
||||||
option_el.innerHTML = option.search_text;
|
option_el.innerHTML = option.search_text;
|
||||||
|
if (option.title) {
|
||||||
|
option_el.title = option.title;
|
||||||
|
}
|
||||||
return this.outerHTML(option_el);
|
return this.outerHTML(option_el);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -269,6 +284,9 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
group_el = document.createElement("li");
|
group_el = document.createElement("li");
|
||||||
group_el.className = classes.join(" ");
|
group_el.className = classes.join(" ");
|
||||||
group_el.innerHTML = group.search_text;
|
group_el.innerHTML = group.search_text;
|
||||||
|
if (group.title) {
|
||||||
|
group_el.title = group.title;
|
||||||
|
}
|
||||||
return this.outerHTML(group_el);
|
return this.outerHTML(group_el);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -340,8 +358,8 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
}
|
}
|
||||||
results_group.active_options += 1;
|
results_group.active_options += 1;
|
||||||
}
|
}
|
||||||
|
option.search_text = option.group ? option.label : option.html;
|
||||||
if (!(option.group && !this.group_search)) {
|
if (!(option.group && !this.group_search)) {
|
||||||
option.search_text = option.group ? option.label : option.text;
|
|
||||||
option.search_match = this.search_string_match(option.search_text, regex);
|
option.search_match = this.search_string_match(option.search_text, regex);
|
||||||
if (option.search_match && !option.group) {
|
if (option.search_match && !option.group) {
|
||||||
results += 1;
|
results += 1;
|
||||||
|
@ -604,10 +622,12 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
Chosen.prototype.register_observers = function() {
|
Chosen.prototype.register_observers = function() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
this.container.observe("touchstart", function(evt) {
|
this.container.observe("touchstart", function(evt) {
|
||||||
return _this.container_mousedown(evt);
|
_this.container_mousedown(evt);
|
||||||
|
return evt.preventDefault();
|
||||||
});
|
});
|
||||||
this.container.observe("touchend", function(evt) {
|
this.container.observe("touchend", function(evt) {
|
||||||
return _this.container_mouseup(evt);
|
_this.container_mouseup(evt);
|
||||||
|
return evt.preventDefault();
|
||||||
});
|
});
|
||||||
this.container.observe("mousedown", function(evt) {
|
this.container.observe("mousedown", function(evt) {
|
||||||
return _this.container_mousedown(evt);
|
return _this.container_mousedown(evt);
|
||||||
|
@ -943,7 +963,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
_this = this;
|
_this = this;
|
||||||
choice = new Element('li', {
|
choice = new Element('li', {
|
||||||
"class": "search-choice"
|
"class": "search-choice"
|
||||||
}).update("<span>" + item.html + "</span>");
|
}).update("<span>" + (this.choice_label(item)) + "</span>");
|
||||||
if (item.disabled) {
|
if (item.disabled) {
|
||||||
choice.addClassName('search-choice-disabled');
|
choice.addClassName('search-choice-disabled');
|
||||||
} else {
|
} else {
|
||||||
|
@ -1028,7 +1048,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
if (this.is_multiple) {
|
if (this.is_multiple) {
|
||||||
this.choice_build(item);
|
this.choice_build(item);
|
||||||
} else {
|
} else {
|
||||||
this.single_set_selected_text(item.text);
|
this.single_set_selected_text(this.choice_label(item));
|
||||||
}
|
}
|
||||||
if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
|
if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
|
||||||
this.results_hide();
|
this.results_hide();
|
||||||
|
@ -1038,6 +1058,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
this.form_field.simulate("change");
|
this.form_field.simulate("change");
|
||||||
}
|
}
|
||||||
this.current_selectedIndex = this.form_field.selectedIndex;
|
this.current_selectedIndex = this.form_field.selectedIndex;
|
||||||
|
evt.preventDefault();
|
||||||
return this.search_field_scale();
|
return this.search_field_scale();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1089,11 +1110,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
||||||
};
|
};
|
||||||
|
|
||||||
Chosen.prototype.get_search_text = function() {
|
Chosen.prototype.get_search_text = function() {
|
||||||
if (this.search_field.value === this.default_text) {
|
|
||||||
return "";
|
|
||||||
} else {
|
|
||||||
return this.search_field.value.strip().escapeHTML();
|
return this.search_field.value.strip().escapeHTML();
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Chosen.prototype.winnow_results_set_highlight = function() {
|
Chosen.prototype.winnow_results_set_highlight = function() {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user