|
|
@ -325,8 +325,10 @@ define([
|
|
|
|
type: 'file'
|
|
|
|
type: 'file'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
APP.$rightside.append([hint, picker]);
|
|
|
|
APP.$rightside.append([hint, picker]);
|
|
|
|
|
|
|
|
Messages.convert_unsupported = "UNSUPPORTED FILE TYPE :("; // XXX
|
|
|
|
|
|
|
|
|
|
|
|
$(picker).on('change', function () {
|
|
|
|
$(picker).on('change', function () {
|
|
|
|
|
|
|
|
APP.$rightside.find('button, div.notice').remove();
|
|
|
|
var file = picker.files[0];
|
|
|
|
var file = picker.files[0];
|
|
|
|
var name = file && file.name;
|
|
|
|
var name = file && file.name;
|
|
|
|
var reader = new FileReader();
|
|
|
|
var reader = new FileReader();
|
|
|
@ -345,6 +347,9 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
}).appendTo(APP.$rightside);
|
|
|
|
}).appendTo(APP.$rightside);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
var notice = h('div.notice', Messages.convert_unsupported);
|
|
|
|
|
|
|
|
APP.$rightside.append(notice);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
if (ext === 'bin') {
|
|
|
|
if (ext === 'bin') {
|
|
|
|