~jfb-tempo-consulting/unifield-web/US-4613

« back to all changes in this revision

Viewing changes to addons/openerp/controllers/templates/downloadbg.mako

  • Committer: jf
  • Date: 2018-11-28 15:04:35 UTC
  • mfrom: (4943.2.1 UW-4875-2)
  • Revision ID: jfb@tempo-consulting.fr-20181128150435-6a1m67xh910um4jl
Tags: uf11.0rc3
US-5360 [FIX] Background export: close tab after 1st click on download button

lp:~dorian-kemps/unifield-web/UW-5360

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
    %if total == 'True':
92
92
        <div>
93
93
            <input type="button" value="Download report"
94
 
            onclick="window.open('/openerp/downloadbg?res_id=${res_id}&from_button=1', '_blank'); window.frameElement.close()" />
 
94
            onclick="setTimeout(function(){window.close();}, 1000); window.open('/openerp/downloadbg?res_id=${res_id}&from_button=1', '_blank'); window.frameElement.close()" />
95
95
        </div>
96
96
    %endif
97
97
    </div>