// fixed CSV import

This commit is contained in:
bMancone
2012-01-25 15:04:25 +00:00
parent d6847208f8
commit bfdb0e9ba1
2 changed files with 18 additions and 20 deletions
@@ -270,19 +270,26 @@
$(".import_products_categories").hide();
$("#entitie").html($("#entity > option:selected").text().toLowerCase());
$.getJSON("ajax.php", {
$.ajax({
url: 'ajax.php',
data: {
getAvailableFields:1,
entity: $("#entity").val()
},
function(j) {
dataType: 'json',
success: function(j) {
var fields = "";
$("#availableFields").empty();
for (var i = 0; i < j.length; i++)
fields += j[i].field;
$("#availableFields").html(fields);
activeClueTip();
}
);
},
error: function(j) {
}
});
});
</script>