Merge pull request #115 from eush77/middle-mouse-button-fix
Do not load file if clicked with the middle mouse button
This commit is contained in:
commit
e6ed5893c7
|
@ -12,7 +12,7 @@ function TreeView($dom, store, adapter) {
|
|||
})
|
||||
.on('click', function(event) {
|
||||
var $target = $(event.target)
|
||||
if (!$target.is('a.jstree-anchor')) return
|
||||
if (!$target.is('a.jstree-anchor') || event.which != 1) return
|
||||
|
||||
var href = $target.attr('href')
|
||||
, $icon = $target.children().length
|
||||
|
|
Loading…
Reference in New Issue