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:
Buu Nguyen 2014-07-07 15:57:30 -07:00
commit e6ed5893c7
1 changed files with 1 additions and 1 deletions

View File

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