From 5c7a16a112df3df91a97ee7769a60ca8f7c4a906 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 30 Sep 2025 08:04:08 +0200 Subject: [PATCH 1/2] set background of drag&drop area when entering --- views/bootstrap/styles/application.js | 3 +++ views/bootstrap4/styles/application.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/views/bootstrap/styles/application.js b/views/bootstrap/styles/application.js index f21d8fb5f..a249aae65 100644 --- a/views/bootstrap/styles/application.js +++ b/views/bootstrap/styles/application.js @@ -1147,9 +1147,11 @@ $(document).ready(function() { /* {{{ */ e.stopPropagation(); e.preventDefault(); $(this).css('border', '2px dashed #0B85A1'); + $(this).css('background-color', '#80808080'); }); $(document).on('dragleave', "#draganddrophandler", function (e) { $(this).css('border', '0px solid white'); + $(this).css('background-color', ''); }); $(document).on('dragover', "#draganddrophandler", function (e) { e.stopPropagation(); @@ -1157,6 +1159,7 @@ $(document).ready(function() { /* {{{ */ }); $(document).on('drop', "#draganddrophandler", function (e) { $(this).css('border', '0px dotted #0B85A1'); + $(this).css('background-color', ''); e.preventDefault(); attr_rel = $(this).data('droptarget'); diff --git a/views/bootstrap4/styles/application.js b/views/bootstrap4/styles/application.js index 25b47f341..ae89354f6 100644 --- a/views/bootstrap4/styles/application.js +++ b/views/bootstrap4/styles/application.js @@ -1195,9 +1195,11 @@ $(document).ready(function() { /* {{{ */ e.stopPropagation(); e.preventDefault(); $(this).css('border', '2px dashed #0B85A1'); + $(this).css('background-color', '#80808080'); }); $(document).on('dragleave', "#draganddrophandler", function (e) { $(this).css('border', '0px solid white'); + $(this).css('background-color', ''); }); $(document).on('dragover', "#draganddrophandler", function (e) { e.stopPropagation(); @@ -1205,6 +1207,7 @@ $(document).ready(function() { /* {{{ */ }); $(document).on('drop', "#draganddrophandler", function (e) { $(this).css('border', '0px dotted #0B85A1'); + $(this).css('background-color', ''); e.preventDefault(); attr_rel = $(this).data('droptarget'); From 42ba5f93df7ff0117066d9489216838e32c904f4 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 30 Sep 2025 08:04:34 +0200 Subject: [PATCH 2/2] use latest version of hfig/mapi --- composer-dist.json | 1 + composer.json | 1 + 2 files changed, 2 insertions(+) diff --git a/composer-dist.json b/composer-dist.json index 80806c777..c68e58a28 100644 --- a/composer-dist.json +++ b/composer-dist.json @@ -26,6 +26,7 @@ "zf1/zend-search-lucene": "*", "symfony/http-foundation": "^5.4", "php-di/php-di": "^6.4", + "hfig/mapi": "*", "slim/psr7": "^1.7", "bacon/bacon-qr-code": "^3.0", "seeddms/core": "dev-__CORE_BRANCH__", diff --git a/composer.json b/composer.json index 5c756707b..5bdcf9674 100644 --- a/composer.json +++ b/composer.json @@ -44,6 +44,7 @@ "zf1/zend-search-lucene": "*", "symfony/http-foundation": "^5.4", "php-di/php-di": "^6.4", + "hfig/mapi": "*", "slim/psr7": "^1.7", "bacon/bacon-qr-code": "^3.0", "seeddms/core": "dev-seeddms-5.1.x",