Commit 87846ed6 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Trigger change on inputs on server browser files selection

parent 609ab6ef
......@@ -705,6 +705,7 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
tid = parts.slice(2, parts.lenght).join("_");
var fillInput = function(files) {
$("#" + tid).val(files.join("\n"));
$("#" + tid).trigger("change");
}
var param_name = $(this).attr("id").replace("urlfile_btn_", "");
JflowBrowser.exec(fillInput, params[param_name].type.startsWith("inputfiles"));
......@@ -854,6 +855,7 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
}
}
});
$("#"+tid).trigger("change");
}
});
setClickServerBrowser(params);
......@@ -910,6 +912,9 @@ Handsontable.cellTypes["bootdate"] = Handsontable.BootstrapDateCell;
var original_data=handsontable_obj.handsontable("getData");
handsontable_obj.handsontable("loadData", original_data.slice(0, original_data.length-1)
.concat(data));
for (var p in paired) {
$this.$element.trigger("change_" + paired[p]);
}
};
JflowBrowser.exec(fill_files, true);
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment