Add showempty into combobox

This commit is contained in:
Florian HENRY
2014-05-13 11:40:19 +02:00
parent 395e09d64d
commit d2e2dabf26
2 changed files with 6 additions and 2 deletions

View File

@@ -348,11 +348,13 @@ function ajax_combobox($htmlname, $events=array(), $minLengthToAutocomplete=0)
var method = obj.method;
var url = obj.url;
var htmlname = obj.htmlname;
var showempty = obj.showempty;
$.getJSON(url,
{
action: method,
id: id,
htmlname: htmlname
htmlname: htmlname,
showempty: showempty
},
function(response) {
$.each(obj.params, function(key,action) {