[-] BO : fix #PSCFV-2302 - import: bug with truncate confirmation

This commit is contained in:
tDidierjean
2012-05-11 09:47:57 +00:00
parent 99b4d64abe
commit 2e3cd55450
2 changed files with 11 additions and 17 deletions
@@ -40,7 +40,17 @@
$("a#upload_file_import_link").fancybox({
'titleShow' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'transitionOut' : 'elastic'
});
$('#preview_import').submit(function(e) {
if ($('#truncate').get(0).checked)
{
if (!confirm('{l s='Are you sure you want to delete' js=1}' + ' ' + $.trim($('#entity > option:selected').text().toLowerCase()) + '{l s='?' js=1}'))
{
e.preventDefault();
}
}
});
});
@@ -50,20 +60,6 @@
splitTitle: '|',
showTitle: false
});
$('#preview_import').submit(function() {
if ($('#truncate').get(0).checked)
{
if (confirm('{l s='Are you sure you want to delete' js=1}' + ' ' + $.trim($('#entity > option:selected').text().toLowerCase()) + '{l s='?' js=1}'))
{
return true;
}
else
{
return false;
}
}
});
};
</script>
-2
View File
@@ -401,7 +401,6 @@ function enableSave()
function handleSaveButtons(e)
{
//product_type = $("input[name=type_product]:checked").val();
msg = [];
var i = 0;
// relative to type of product
@@ -413,7 +412,6 @@ function handleSaveButtons(e)
msg[i++] = handleSaveButtonsForSimple();
// common for all products
// name[defaultlangid]
$("#disableSaveMessage").remove();
if ($("#name_"+defaultLanguage).val() == "" && (!display_multishop_checkboxes || $('input[name=\'multishop_check[name]['+defaultLanguage+']\']').prop('checked')))
{