clicking on the bg removes selection/highlights

This commit is contained in:
2021-06-09 18:06:57 +10:00
parent 8e4b5fe09b
commit 824aae3f94

View File

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