summaryrefslogtreecommitdiff
path: root/addons/base/static/src/xml/base.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-08-09 12:04:38 +0200
committerXavier Morel <xmo@openerp.com>2011-08-09 12:04:38 +0200
commite483027956fcbe07fef71a4edb04d96b80ebc5dc (patch)
treee3a073eb4a989738f388d5f9012fa86abbf1007c /addons/base/static/src/xml/base.xml
parent3724ff0545188d678d58647c00039fa4c0f78e5b (diff)
[IMP] simplify and cleanup handling of clicking on a given table open/close icon; split out setup in a separate method
bind the event *once* at the table toplevel instead of binding it at every sub-tree display, which mandates adding supplementary code to filter out clicks coming from the wrong height of the tree and not concerning the record(s) we're interested in bzr revid: xmo@openerp.com-20110809100438-i9546bkxydaz58ol
Diffstat (limited to 'addons/base/static/src/xml/base.xml')
-rw-r--r--addons/base/static/src/xml/base.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/base/static/src/xml/base.xml b/addons/base/static/src/xml/base.xml
index 82338b7b2a4..9517c8d847c 100644
--- a/addons/base/static/src/xml/base.xml
+++ b/addons/base/static/src/xml/base.xml
@@ -262,6 +262,7 @@
<td t-if="children and children.length"
class="treeview-tr">
<img t-att-id="'parentimg_' + record.id"
+ t-att-data-id="record.id"
src="/base/static/src/img/expand.gif"
width="16" height="16" border="0"/>
</td>