This commit is contained in:
JFH
2020-12-30 17:23:14 +01:00
parent d37494c2af
commit d574e73ecb
5 changed files with 23 additions and 24 deletions

View File

@@ -1,3 +1,4 @@
/* globals seConfirm */
/**
* @file ext-foreignobject.js
*
@@ -200,8 +201,7 @@ export default {
if (!editingforeign) { return; }
if (!setForeignString($('#svg_source_textarea').val())) {
// eslint-disable-next-line no-alert
const ok = confirm('Errors found. Revert to original?');
const ok = seConfirm('Errors found. Revert to original?');
if (!ok) { return; }
endChanges();
} else {

View File

@@ -133,7 +133,7 @@ export default {
// Todo: Uncomment the setItexString() function above and handle ajaxEndpoint?
/*
if (!setItexString($('#svg_source_textarea').val())) {
const ok = confirm('Errors found. Revert to original?', function (ok) {
const ok = seConfirm('Errors found. Revert to original?', function (ok) {
if (!ok) {
return false;
}

View File

@@ -54,7 +54,7 @@ export default {
// the "noStorageOnLoad" config setting to true in svgedit-config-*.js.
noStorageOnLoad,
forceStorage
} = svgEditor.curConfig;
} = svgEditor.configObj.curConfig;
const {storage} = svgEditor;
/**