[FIX] wall widget: fixed variable not refreshed
[odoo/odoo.git] / addons / report_webkit / default_header.html
1 <html>
2     <head>
3         <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
4         <style type="text/css"> 
5             ${css}
6         </style>
7         <script>
8         function subst() {
9            var vars={};
10            var x=document.location.search.substring(1).split('&');
11            for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
12            var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
13            for(var i in x) {
14              var y = document.getElementsByClassName(x[i]);
15              for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
16            }
17          }
18         </script>
19     </head>
20 <body style="border:0; margin: 0;" onload="subst()">
21 </body>
22 </html>