From 094743c4f56cc17612f1200b096247909ec20dfc Mon Sep 17 00:00:00 2001 From: Imperadeiro98 Date: Thu, 19 Nov 2015 17:05:00 +0000 Subject: [PATCH 1/2] Fix #2916 --- app/views/core/AuthModal.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/core/AuthModal.coffee b/app/views/core/AuthModal.coffee index 7a5845bdf..4266ec672 100644 --- a/app/views/core/AuthModal.coffee +++ b/app/views/core/AuthModal.coffee @@ -42,6 +42,7 @@ module.exports = class AuthModal extends ModalView afterRender: -> super() @$el.toggleClass('signup', @mode is 'signup').toggleClass('login', @mode is 'login') + @playSound 'game-menu-open' afterInsert: -> super() @@ -155,3 +156,7 @@ module.exports = class AuthModal extends ModalView el.i18n() @$el.find('.modal-body:visible').empty().append(el) @$el.find('.modal-footer').remove() + + onHidden: -> + super() + @playSound 'game-menu-close' From 480a310313ccc1d393bd034b7492fea5fce01ee2 Mon Sep 17 00:00:00 2001 From: Imperadeiro98 Date: Thu, 19 Nov 2015 21:36:57 +0000 Subject: [PATCH 2/2] Add sound to Facebook login --- app/views/core/AuthModal.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/core/AuthModal.coffee b/app/views/core/AuthModal.coffee index 4266ec672..a27bca5d4 100644 --- a/app/views/core/AuthModal.coffee +++ b/app/views/core/AuthModal.coffee @@ -106,6 +106,7 @@ module.exports = class AuthModal extends ModalView createUser userObject, null, window.nextURL onLoggingInWithFacebook: (e) -> + @playSound 'menu-button-click' modal = $('.modal:visible', @$el) @enableModalInProgress(modal) # TODO: part of forms