Do not load file if clicked with the middle mouse button

This commit is contained in:
eush77 2014-06-16 00:13:15 +04:00
parent 7a224faf38
commit 2a6c4638ca
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