Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
11196 Vues

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

I wan to know whether we can and how to?

Avatar
Ignorer
Meilleure réponse
<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
Ignorer
Auteur

thank you very much

Publications associées Réponses Vues Activité
1
déc. 24
4448
1
oct. 20
4687
2
juin 20
4401
5
déc. 17
5755
3
janv. 24
16730