charset as windows-1252 when format is MS Excel

Signed-off-by: Kartik Kathuria <kathuriakartik0@gmail.com>
This commit is contained in:
Kartik Kathuria 2019-03-02 00:22:20 +05:30
parent 4c93203904
commit bccf73d6ed

View File

@ -307,6 +307,17 @@ AJAX.registerOnload('export.js', function () {
$('#checkbox_sql_auto_increment').prop('disabled', false).parent().fadeTo('fast', 1);
}
});
// When MS Excel is selected as the Format automatically Switch to Character Set as windows-1252
$('#plugins').change(function () {
var selected_plugin_name = $('#plugins').find('option:selected').val();
if(selected_plugin_name == "excel"){
$('#select_charset').val('windows-1252');
}
else{
$('#select_charset').val('utf-8');
}
});
// For separate-file exports only ZIP compression is allowed
$('input[type="checkbox"][name="as_separate_files"]').on('change', function () {