aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets/javascript
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-04-29 00:12:55 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-04-29 00:12:55 +0200
commitae8129b69902959212594e83435081a4bf0b5412 (patch)
treef334a0d185cfd5acffa8435376ccd8bde726ef0d /phpBB/assets/javascript
parent46a789de5c8c4f7ff9717a9d45abc7cfe66b9b6a (diff)
downloadforums-ae8129b69902959212594e83435081a4bf0b5412.tar
forums-ae8129b69902959212594e83435081a4bf0b5412.tar.gz
forums-ae8129b69902959212594e83435081a4bf0b5412.tar.bz2
forums-ae8129b69902959212594e83435081a4bf0b5412.tar.xz
forums-ae8129b69902959212594e83435081a4bf0b5412.zip
[ticket/12542] Add different outline colors for body & textarea
PHPBB3-12542
Diffstat (limited to 'phpBB/assets/javascript')
-rw-r--r--phpBB/assets/javascript/core.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index c15a51d959..6238b2c1f2 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -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');
+ });
};
/**