mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1293: Rename click handler sensibly. No need to prevent default, etc. for clicks.
This commit is contained in:
@@ -162,7 +162,7 @@ angular.module('client').directive('guacFileBrowser', [function guacFileBrowser(
|
||||
}
|
||||
|
||||
// Mark file as focused upon click
|
||||
element.on('click', function focusFile(e) {
|
||||
element.on('click', function handleFileClick() {
|
||||
|
||||
// Fire file-specific action if already focused
|
||||
if (element.hasClass('focused')) {
|
||||
@@ -176,10 +176,6 @@ angular.module('client').directive('guacFileBrowser', [function guacFileBrowser(
|
||||
element.addClass('focused');
|
||||
}
|
||||
|
||||
// Do not allow default action
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
});
|
||||
|
||||
// Prevent text selection during navigation
|
||||
|
Reference in New Issue
Block a user