Ignore right-click events in the sidebar

pull/241/head
Thibaut 10 years ago
parent 999b61416d
commit e2b86742a4

@ -58,6 +58,7 @@ class app.views.DocPicker extends app.View
input.name
onClick: (event) =>
return if event.which isnt 1
if event.target is @saveLink
$.stopEvent(event)
@save()

@ -76,6 +76,7 @@ class app.views.Sidebar extends app.View
return
onClick: (event) =>
return if event.which isnt 1
if event.target.hasAttribute? 'data-reset-list'
$.stopEvent(event)
@reset()
@ -85,6 +86,7 @@ class app.views.Sidebar extends app.View
return
onGlobalClick: (event) =>
return if event.which isnt 1
if event.target.hasAttribute? 'data-pick-docs'
$.stopEvent(event)
@showDocPicker()

Loading…
Cancel
Save