From ae642030b381df4f9f5751b8b16c7c6810304ce1 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 13 Aug 2015 12:49:11 -0700 Subject: [PATCH] GUAC-1293: Remove "focused" class after action is fired. --- .../src/main/webapp/app/client/directives/guacFileBrowser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guacamole/src/main/webapp/app/client/directives/guacFileBrowser.js b/guacamole/src/main/webapp/app/client/directives/guacFileBrowser.js index 4469cecbd..f5a8c684d 100644 --- a/guacamole/src/main/webapp/app/client/directives/guacFileBrowser.js +++ b/guacamole/src/main/webapp/app/client/directives/guacFileBrowser.js @@ -165,8 +165,10 @@ angular.module('client').directive('guacFileBrowser', [function guacFileBrowser( element.on('click', function focusFile(e) { // Fire file-specific action if already focused - if (element.hasClass('focused')) + if (element.hasClass('focused')) { fileAction(); + element.removeClass('focused'); + } // Otherwise mark as focused else {