|
Lines 51-57
Link Here
|
| 51 |
var filename = $(this).val(); |
51 |
var filename = $(this).val(); |
| 52 |
if ( ! /(?:\.csv|\.ods|\.xml)$/.test(filename)) { |
52 |
if ( ! /(?:\.csv|\.ods|\.xml)$/.test(filename)) { |
| 53 |
$(this).css("background-color","yellow"); |
53 |
$(this).css("background-color","yellow"); |
| 54 |
alert(_("Please select an ods or xml file")); |
54 |
alert(_("Please select a CSV (.csv), ODS (.ods) or XML (.xml) file.")); |
| 55 |
$(this).val(""); |
55 |
$(this).val(""); |
| 56 |
$(this).css("background-color","white"); |
56 |
$(this).css("background-color","white"); |
| 57 |
} |
57 |
} |
| 58 |
- |
|
|