- Fix: Ensure repeated selection of same file overwrites with that
file's contents (fix #289)
This commit is contained in:
@@ -5679,7 +5679,7 @@ editor.init = function () {
|
||||
workarea[0].addEventListener('dragleave', onDragLeave, false);
|
||||
workarea[0].addEventListener('drop', importImage, false);
|
||||
|
||||
const open = $('<input type="file">').change(function () {
|
||||
const open = $('<input type="file">').click(function () {
|
||||
const f = this;
|
||||
editor.openPrep(function (ok) {
|
||||
if (!ok) { return; }
|
||||
|
||||
@@ -30783,7 +30783,7 @@
|
||||
workarea[0].addEventListener('dragleave', onDragLeave, false);
|
||||
workarea[0].addEventListener('drop', importImage, false);
|
||||
|
||||
var open = $$b('<input type="file">').change(function () {
|
||||
var open = $$b('<input type="file">').click(function () {
|
||||
var f = this;
|
||||
editor.openPrep(function (ok) {
|
||||
if (!ok) {
|
||||
|
||||
Reference in New Issue
Block a user