Skip to Content
Menu
This question has been flagged
1 Odpoveď
11544 Zobrazenia

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

I wan to know whether we can and how to?

Avatar
Zrušiť
Best Answer
<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šiť
Autor

thank you very much

Related Posts Replies Zobrazenia Aktivita
1
dec 24
4816
1
okt 20
4971
2
jún 20
4700
5
dec 17
6016
3
jan 24
17039