From 91c2c391a43bba9740b25742bb95baf92b3b6096 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 11 Jul 2016 00:59:35 -0400 Subject: [PATCH] fix voice dialog cancellation --- .../bower_components/emby-webcomponents/voice/voicedialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard-ui/bower_components/emby-webcomponents/voice/voicedialog.js b/dashboard-ui/bower_components/emby-webcomponents/voice/voicedialog.js index 40909adb5a..76ce4c31e4 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/voice/voicedialog.js +++ b/dashboard-ui/bower_components/emby-webcomponents/voice/voicedialog.js @@ -166,11 +166,11 @@ define(['dialogHelper', './voicereceiver', './voiceprocessor', 'globalize', 'emb currentDialog = dlg; dlg.addEventListener('close', function () { + voicereceiver.cancel(); currentDialog = null; }); function onCancelClick() { - voicereceiver.cancel(); dialogHelper.close(dlg); }