Fix Selection-Toolbar: Position oben statt ueber Header, direktes Button-Binding
Toolbar wird jetzt am oberen Bildschirmrand angezeigt (Desktop), damit sie nicht mehr den Header/Nav ueberlagert. Auf Mobile bleibt sie unterhalb des Headers. Cancel/Download-Buttons nutzen direktes Binding auf $toolbar statt Delegation auf document. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -394,8 +394,8 @@
|
||||
updateToolbar();
|
||||
}
|
||||
|
||||
// Download-Button
|
||||
$(document).on('click', '#sel-download', function() {
|
||||
// Download-Button (direkt gebunden, nicht delegiert)
|
||||
$toolbar.on('click', '#sel-download', function() {
|
||||
if (selectedImages.length === 0) return;
|
||||
$.ajax({
|
||||
url: '/api/download/selected',
|
||||
@@ -440,8 +440,8 @@
|
||||
});
|
||||
});
|
||||
|
||||
// Abbrechen-Button
|
||||
$(document).on('click', '#sel-cancel', function() {
|
||||
// Abbrechen-Button (direkt gebunden)
|
||||
$toolbar.on('click', '#sel-cancel', function() {
|
||||
selectionActive = false;
|
||||
$('body').removeClass('selection-mode');
|
||||
$toolbar.removeClass('visible');
|
||||
|
||||
2
assets/js/main.min.js
vendored
2
assets/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user