Fix #122
This commit is contained in:
parent
6d88b207b3
commit
6b66b90955
|
@ -12,6 +12,10 @@ function TreeView($dom, store, adapter) {
|
|||
})
|
||||
.on('click', function(event) {
|
||||
var $target = $(event.target)
|
||||
|
||||
// handle icon click, fix #122
|
||||
if ($target.is('i.jstree-icon')) $target = $target.parent()
|
||||
|
||||
if (!$target.is('a.jstree-anchor')) return
|
||||
|
||||
var href = $target.attr('href')
|
||||
|
|
Loading…
Reference in New Issue