mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-01-22 17:19:49 +00:00
set background of drag&drop area when entering
This commit is contained in:
parent
5aa17d92df
commit
5c7a16a112
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user