Loading editor/html/index.html +0 −8 Changes for editor/html/index.html: 0 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -160,14 +160,6 @@ </div> </dialog> <dialog id="export-dialog"> <h3 data-i18n="I18N_EXPORT_XML">XML exportieren</h3> <textarea id="export-xml-content" rows="15" readonly></textarea> <div class="dialog-actions"> <button id="btn-export-copy">Kopieren</button> <button id="btn-export-close" data-i18n="Close">Schließen</button> </div> </dialog> <dialog id="revisions-dialog"> <h3 data-i18n="I18N_REVISIONS">Versionen</h3> Loading editor/html/js/editor.js +3 −13 Changes for editor/html/js/editor.js: 3 added lines, 13 removed lines. Original line number Diff line number Diff line Loading @@ -220,9 +220,10 @@ if (resp && resp.zip_base64) { var blob = base64ToBlob(resp.zip_base64, 'application/zip'); triggerDownload(blob, resp.file_name || 'template.zip'); } else if (resp && resp.xml) { var blob = new Blob([resp.xml], { type: 'text/xml' }); triggerDownload(blob, (resp.file_name ? resp.file_name.replace('.zip', '.xml') : 'template.xml')); } document.getElementById('export-xml-content').value = resp.xml || ''; document.getElementById('export-dialog').showModal(); }).catch(function(err) { alert(I18n.t('I18N_EXPORT_FAILED', 'Export fehlgeschlagen') + ': ' + ((err && err.error) || err || '')); }); Loading Loading @@ -404,17 +405,6 @@ document.getElementById('import-dialog').close(); }); // Export dialog document.getElementById('btn-export-copy').addEventListener('click', function() { var textarea = document.getElementById('export-xml-content'); textarea.select(); document.execCommand('copy'); }); document.getElementById('btn-export-close').addEventListener('click', function() { document.getElementById('export-dialog').close(); }); // Revisions dialog document.getElementById('btn-revisions-close').addEventListener('click', function() { document.getElementById('revisions-dialog').close(); Loading Loading
editor/html/index.html +0 −8 Changes for editor/html/index.html: 0 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -160,14 +160,6 @@ </div> </dialog> <dialog id="export-dialog"> <h3 data-i18n="I18N_EXPORT_XML">XML exportieren</h3> <textarea id="export-xml-content" rows="15" readonly></textarea> <div class="dialog-actions"> <button id="btn-export-copy">Kopieren</button> <button id="btn-export-close" data-i18n="Close">Schließen</button> </div> </dialog> <dialog id="revisions-dialog"> <h3 data-i18n="I18N_REVISIONS">Versionen</h3> Loading
editor/html/js/editor.js +3 −13 Changes for editor/html/js/editor.js: 3 added lines, 13 removed lines. Original line number Diff line number Diff line Loading @@ -220,9 +220,10 @@ if (resp && resp.zip_base64) { var blob = base64ToBlob(resp.zip_base64, 'application/zip'); triggerDownload(blob, resp.file_name || 'template.zip'); } else if (resp && resp.xml) { var blob = new Blob([resp.xml], { type: 'text/xml' }); triggerDownload(blob, (resp.file_name ? resp.file_name.replace('.zip', '.xml') : 'template.xml')); } document.getElementById('export-xml-content').value = resp.xml || ''; document.getElementById('export-dialog').showModal(); }).catch(function(err) { alert(I18n.t('I18N_EXPORT_FAILED', 'Export fehlgeschlagen') + ': ' + ((err && err.error) || err || '')); }); Loading Loading @@ -404,17 +405,6 @@ document.getElementById('import-dialog').close(); }); // Export dialog document.getElementById('btn-export-copy').addEventListener('click', function() { var textarea = document.getElementById('export-xml-content'); textarea.select(); document.execCommand('copy'); }); document.getElementById('btn-export-close').addEventListener('click', function() { document.getElementById('export-dialog').close(); }); // Revisions dialog document.getElementById('btn-revisions-close').addEventListener('click', function() { document.getElementById('revisions-dialog').close(); Loading