Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
11216 Zobrazení

It seems that we can't define javascript function on xml file;

I wan to know whether we can and how to?

Avatar
Zrušit
Nejlepší odpověď
<template id="assets_backend" inherit_id="web.assets_backend">
     <xpath expr="." position="inside">
         <script type="text/javascript">
                 function your_function(args......)
                 {
                             //statements
                  }
         </script>
       </xpath>
 </template>
Avatar
Zrušit
Autor

thank you very much

Related Posts Odpovědi Zobrazení Aktivita
1
pro 24
4490
1
říj 20
4706
2
čvn 20
4411
5
pro 17
5762
3
led 24
16745