[js] return false after asyncRemoteExec to prevent a crush draft
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Mon, 31 Aug 2015 15:07:38 +0200
changeset 28 de00c758e9ca
parent 27 ed66da7eb9f8
child 29 6cf3453bed79
[js] return false after asyncRemoteExec to prevent a crush
views/treeview.py
--- a/views/treeview.py	Fri Jul 10 09:39:59 2015 +0200
+++ b/views/treeview.py	Mon Aug 31 15:07:38 2015 +0200
@@ -79,7 +79,7 @@
             if treeid.startswith('throw_away'):
                 divtail = ''
             else:
-                divtail = """ onclick="asyncRemoteExec('node_clicked', '%s', '%s')" """ % (
+                divtail = """ onclick="asyncRemoteExec('node_clicked', '%s', '%s'); return false;" """ % (
                     treeid, entity.eid)
             w(u'<div class="%s"%s></div>' % (u' '.join(divclasses), divtail))