From e052d44e593173f84c435339ca7da5f390a107d8 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Mon, 19 Apr 2021 22:52:46 +0200 Subject: [PATCH] improve export backend template --- .../views/admin/tpl/d3ExportWizard.tpl | 69 ++++++++----------- 1 file changed, 28 insertions(+), 41 deletions(-) diff --git a/src/Application/views/admin/tpl/d3ExportWizard.tpl b/src/Application/views/admin/tpl/d3ExportWizard.tpl index f83d972..049886a 100644 --- a/src/Application/views/admin/tpl/d3ExportWizard.tpl +++ b/src/Application/views/admin/tpl/d3ExportWizard.tpl @@ -6,12 +6,10 @@ [{oxscript include="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"}] [{oxstyle include="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/solid.min.css"}] - +[{capture name="d3script"}][{strip}] + function startExport(id, format) { + let elements = document.getElementsByClassName('errorbox'); + for (var i = 0; i < elements.length; i++){ + elements[i].style.display = 'none'; + } + setTimeout(function(){ + document.getElementById('mask').className=''; + document.getElementById('popup2').className='d3loader-2'; + }, 3000); + document.getElementById('mask').className='on'; + document.getElementById('popup2').className='d3loader-2 on'; + document.getElementById('exportid').value = id; + document.getElementById('exportformat').value = format; + document.getElementById('myedit').submit(); + } +[{/strip}][{/capture}] +[{oxscript add=$smarty.capture.d3script}] +
[{$oViewConf->getHiddenSid()}] @@ -62,18 +78,7 @@

- @@ -85,30 +90,12 @@