From 824aae3f9413acb88378a7e90b9934fbc5c0e24f Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Wed, 9 Jun 2021 18:06:57 +1000 Subject: [PATCH] clicking on the bg removes selection/highlights --- templates/files.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/files.html b/templates/files.html index b043a6d..ab06378 100644 --- a/templates/files.html +++ b/templates/files.html @@ -314,6 +314,7 @@ function DoSel(e, el) } $('.figure').click( function(e) { DoSel(e, this ); return false; }); +$(document).on('click', function(e) { $('.highlight').removeClass('highlight') }); (function ($, window) { @@ -367,6 +368,7 @@ $('.figure').click( function(e) { DoSel(e, this ); return false; }); }; })(jQuery, window); +{# for now if we have no data, dont peak inside the first element to see if we are viewing the Bin folder and then swich the context menu #} {% if entry_data|length > 0 %} if( "{{entry_data[0].in_dir.in_path.type.name}}" == "Bin" ) { $('#dd_del').hide()