gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Tree with Checkboxes does not publish onClickTopics Event #976

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When using the Tree Plugin with setting checkbox="true" no onClickTopics Event 
is published any more.

What steps will reproduce the problem?
1. Use the Tree Plugin with setting checkbox="true"

What is the expected output? What do you see instead?

Expected: Configurable setting that even with checkboxes shown a click will 
publish the onClickTopics event.

What I would like to achieve is a tree that allows the user to either select 
multiple items by selecting checkboxes or directly select an item by clicking 
on the item itself.

Instead: When checkboxes are shown no onClickTopics event is published.

Which struts2 version?
2.3.12

Which struts2-jquery plugin version?
3.5.1

Please provide any additional information below.

Workaround to achieve that functionality is to replace 
   override_ui : true
by
   override_ui : false
in
   \template\js\struts2\jquery.tree.struts2.min.js

Using this settings the onClickTopics Events are published again.

But I would prefer a way to configure that "override_ui" setting of the jstree 
widget instead changing it in the code.

Original issue reported on code.google.com by marzl....@gmail.com on 7 May 2013 at 8:48