]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/is/form_header.html
Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[mfinanz.git] / templates / webpages / is / form_header.html
index b155850ababf14c22f4890a4e8d3e1b1d6abe5bf..c870191b0c74f181c915c6fbef43e457564c74b5 100644 (file)
   <script type="text/javascript">
    <!--
      $('document').ready(function(){
+[% IF INSTANCE_CONF.get_invoice_prevent_browser_back %]
+       function disableBack() { window.history.forward() };
+       window.onload = disableBack();
+       window.onpageshow = function(evt) { if (evt.persisted) disableBack() };
+[% END %]
+
 [% IF resubmit && is_format_html %]
        window.open('about:blank','Beleg');
        document.invoice.target = 'Beleg';