GUAC-1293: Rename click handler sensibly. No need to prevent default, etc. for clicks.

This commit is contained in:
Michael Jumper
2015-08-13 12:51:15 -07:00
parent ae642030b3
commit a2efb47e3c

View File

@@ -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