set background of drag&drop area when entering

This commit is contained in:
Uwe Steinmann 2025-09-30 08:04:08 +02:00
parent 5aa17d92df
commit 5c7a16a112
2 changed files with 6 additions and 0 deletions

View File

@ -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');

View File

@ -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');