This commit is contained in:
Buu Nguyen 2014-07-28 18:16:34 -07:00
parent 6d88b207b3
commit 6b66b90955
1 changed files with 4 additions and 0 deletions

View File

@ -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')