Del key bound for delete on files page
This commit is contained in:
2
TODO
2
TODO
@@ -1,6 +1,4 @@
|
|||||||
## GENERAL
|
## GENERAL
|
||||||
* delete key bound to del dbox
|
|
||||||
|
|
||||||
* ai search, should put 'all' at top of drop-down
|
* ai search, should put 'all' at top of drop-down
|
||||||
|
|
||||||
* add an option on the person menu to run_ai_on all photos (or at least import/storage)
|
* add an option on the person menu to run_ai_on all photos (or at least import/storage)
|
||||||
|
|||||||
@@ -351,5 +351,18 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
$(".dir").click( function(e) { $('#offset').val(0) ; $('#cwd').val( $(this).attr('dir') ) ; $('#main_form').submit() } )
|
$(".dir").click( function(e) { $('#offset').val(0) ; $('#cwd').val( $(this).attr('dir') ) ; $('#main_form').submit() } )
|
||||||
} )
|
} )
|
||||||
|
|
||||||
|
$( document ).keydown(function(event) {
|
||||||
|
switch (event.key)
|
||||||
|
{
|
||||||
|
case "Delete":
|
||||||
|
{% if "files_rbp" in request.url %}
|
||||||
|
if( ! NoSel() ) DelDBox('Restore');
|
||||||
|
{% else %}
|
||||||
|
if( ! NoSel() ) DelDBox('Delete');
|
||||||
|
{% endif %}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endblock script_content %}
|
{% endblock script_content %}
|
||||||
|
|||||||
Reference in New Issue
Block a user