select type based on file extension, fixes #2560

This commit is contained in:
j 2014-11-15 10:50:50 +00:00
parent 2a3062e029
commit 5862a7066c

View file

@ -69,6 +69,7 @@ pandora.ui.importAnnotationsDialog = function(options) {
.bindEvent({
change: function(data) {
$status.empty();
data.value.length && $formatSelect.options({value: Ox.last(data.value[0].name.split('.'))});
that[
data.value.length ? 'enableButton' : 'disableButton'
]('import');