mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/12542] Add different outline colors for body & textarea
PHPBB3-12542
This commit is contained in:
@@ -1233,11 +1233,16 @@ phpbb.applyCodeEditor = function(textarea) {
|
||||
};
|
||||
|
||||
phpbb.applyDragNDrop = function(textarea) {
|
||||
$('html').on('dragenter dragover', function () {
|
||||
$('body').on('dragenter dragover', function () {
|
||||
$(textarea).addClass('drag-n-drop');
|
||||
}).on('dragleave dragout dragend drop', function() {
|
||||
$(textarea).removeClass('drag-n-drop');
|
||||
});
|
||||
$(textarea).on('dragenter dragover', function () {
|
||||
$(textarea).addClass('drag-n-drop-highlight');
|
||||
}).on('dragleave dragout dragend drop', function() {
|
||||
$(textarea).removeClass('drag-n-drop-highlight');
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user