Lines 53-59
Link Here
|
53 |
var obj = $('#' + id + ' input:file'); |
53 |
var obj = $('#' + id + ' input:file'); |
54 |
if (/(?:\.csv|\.ods|\.xml)$/.test(obj.val())) { |
54 |
if (/(?:\.csv|\.ods|\.xml)$/.test(obj.val())) { |
55 |
var frameworkcode = $('#' + id + ' input:hidden[name=frameworkcode]').val(); |
55 |
var frameworkcode = $('#' + id + ' input:hidden[name=frameworkcode]').val(); |
56 |
var MSG_OVERWRITE_WARNING = _("Are you sure you want to import the " + frameworkcode + " framework structure? This will overwrite the current configuration. For safety reasons, it is recommended to use the export option to make a backup first."); |
56 |
var MSG_OVERWRITE_WARNING = _("Are you sure you want to replace the fields and subfields for the " + frameworkcode + " framework structure? The existing structure will be overwritten! For safety reasons, it is recommended to use the export option to make a backup first."); |
57 |
if (confirm( MSG_OVERWRITE_WARNING )) { |
57 |
if (confirm( MSG_OVERWRITE_WARNING )) { |
58 |
$('#importing_' + frameworkcode).find("span").html(MSG_IMPORTING_TO_FRAMEWORK.format("<strong>" + frameworkcode + "</strong>", "<i>" + obj.val().replace(new RegExp("^.+[/\\\\]"),"") + "</i>")); |
58 |
$('#importing_' + frameworkcode).find("span").html(MSG_IMPORTING_TO_FRAMEWORK.format("<strong>" + frameworkcode + "</strong>", "<i>" + obj.val().replace(new RegExp("^.+[/\\\\]"),"") + "</i>")); |
59 |
if (navigator.userAgent.toLowerCase().indexOf('msie') != -1) { |
59 |
if (navigator.userAgent.toLowerCase().indexOf('msie') != -1) { |
60 |
- |
|
|