2
0
forked from Wavyzz/dolibarr

Fix selection of contact into creation of event

This commit is contained in:
Laurent Destailleur
2017-11-12 13:40:05 +01:00
parent 836f6bf3c9
commit 186c8cdbf0
5 changed files with 15 additions and 8 deletions

View File

@@ -443,13 +443,13 @@ function ajax_combobox($htmlname, $events=array(), $minLengthToAutocomplete=0, $
});
function runJsCodeForEvent'.$htmlname.'(obj) {
console.log("Run runJsCodeForEvent'.$htmlname.'");
var id = $("#'.$htmlname.'").val();
var method = obj.method;
var url = obj.url;
var htmlname = obj.htmlname;
var showempty = obj.showempty;
$.getJSON(url,
console.log("Run runJsCodeForEvent-'.$htmlname.' from ajax_combobox id="+id+" method="+method+" showempty="+showempty+" url="+url+" htmlname="+htmlname);
$.getJSON(url,
{
action: method,
id: id,