forked from Wavyzz/dolibarr
Fix [ bug #1349 ] AJAX contact selector does not work fine in Project
card
This commit is contained in:
@@ -19,6 +19,7 @@ Fix: [ bug #1451 ] Interrupted order clone through trigger, loads nonexistent or
|
||||
Fix: [ bug #1454 ] Mention de bas de page erroné
|
||||
Fix: Do not display dictionnay for non activated module
|
||||
Fix: Link element from element project pages
|
||||
Fix: [ bug #1349 ] AJAX contact selector does not work fine in Project card
|
||||
|
||||
***** ChangeLog for 3.5.3 compared to 3.5.2 *****
|
||||
Fix: Error on field accountancy code for export profile of invoices.
|
||||
|
||||
@@ -808,6 +808,7 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
|
||||
var input = this.input = $( "<input>" )
|
||||
.insertAfter( select )
|
||||
.val( value )
|
||||
.attr('id', 'inputautocomplete'+select.attr('id'))
|
||||
.autocomplete({
|
||||
delay: 0,
|
||||
minLength: this.options.minLengthToAutocomplete,
|
||||
|
||||
@@ -358,6 +358,13 @@ function ajax_combobox($htmlname, $event=array(), $minLengthToAutocomplete=0)
|
||||
}
|
||||
});
|
||||
$("select#" + htmlname).html(response.value);
|
||||
if (response.num) {
|
||||
var selecthtml_str = response.value;
|
||||
var selecthtml_dom=$.parseHTML(selecthtml_str);
|
||||
$("#inputautocomplete"+htmlname).val(selecthtml_dom[0][0].innerHTML);
|
||||
} else {
|
||||
$("#inputautocomplete"+htmlname).val("");
|
||||
}
|
||||
});
|
||||
}
|
||||
});';
|
||||
|
||||
Reference in New Issue
Block a user