Merge pull request #719 from opf/fix/timelines_autocomplete

copy multiple attribute to new input too.
pull/714/merge
sschu 11 years ago
commit 64a844a481
  1. 6
      app/assets/javascripts/autocompleter.js
  2. 1
      doc/CHANGELOG.md

@ -117,7 +117,7 @@
$.fn.autocomplete.defaults = {
multiple: false,
data: {},
allowedAttributes: ["title", "placeholder", "id", "name"],
allowedAttributes: ["title", "placeholder", "id", "name", "multiple"],
minimumInputLength: 0,
ajax: {
null_element: null,
@ -173,8 +173,8 @@
var data,
multiple = $(element).attr("multiple");
if (multiple !== null && multiple !== undefined && multiple) {
data = []
};
data = [];
}
if (!($(element).attr("data-selected") === "" || $(element).attr("data-selected") === null || $(element).attr("data-selected") === undefined)) {
JSON.parse($(element).attr('data-selected')).each(function (elem) {
if (multiple) {

@ -33,6 +33,7 @@ See doc/COPYRIGHT.rdoc for more details.
* `#3050` Fix: Fix: [Work Package Tracking] Internal error with query from the time before work packages
* `#3104` Fix: [Forums] Number of replies to a topic are not displayed
* `#3202` Fix: [Bug] Grouping work packages by responsible is broken
* `#3212` First Grouping Criteria Selection broken when more than one element pre-selected
* `#3055` [Work Package Tracking] Former deleted planning elements not handled in any way
## 3.0.0pre34

Loading…
Cancel
Save