From 5b24e7beaf3b300706c994ae54bb825e6e496f57 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 18 Feb 2019 14:55:26 +0100 Subject: [PATCH] Fixed typo. --- .../javascripts/app/controllers/_application_controller.coffee | 2 +- .../app/controllers/ticket_zoom/attribute_bar.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller.coffee b/app/assets/javascripts/app/controllers/_application_controller.coffee index f8fcd6092..e082cb166 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.coffee @@ -339,7 +339,7 @@ class App.Controller extends Spine.Controller stopPropagation: (e) -> e.stopPropagation() - preventDefaultAndstopPropagation: (e) -> + preventDefaultAndStopPropagation: (e) -> e.preventDefault() e.stopPropagation() diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/attribute_bar.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/attribute_bar.coffee index 79e9a79a3..a3c7d485d 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/attribute_bar.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/attribute_bar.coffee @@ -5,7 +5,7 @@ class App.TicketZoomAttributeBar extends App.Controller events: 'mousedown .js-openDropdownMacro': 'toggleMacroMenu' - 'click .js-openDropdownMacro': 'preventDefaultAndstopPropagation' + 'click .js-openDropdownMacro': 'preventDefaultAndStopPropagation' 'mouseup .js-dropdownActionMacro': 'performTicketMacro' 'mouseenter .js-dropdownActionMacro': 'onActionMacroMouseEnter' 'mouseleave .js-dropdownActionMacro': 'onActionMacroMouseLeave'