Skip to Content
Menu
This question has been flagged
1 Atsakyti
11237 Rodiniai

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

I wan to know whether we can and how to?

Portretas
Atmesti
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>
Portretas
Atmesti
Autorius

thank you very much

Related Posts Replies Rodiniai Veikla
1
gruod. 24
4537
1
spal. 20
4744
2
birž. 20
4453
5
gruod. 17
5806
3
saus. 24
16768