aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets/javascript/editor.js
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2015-05-28 13:36:15 +0200
committerCesar G <prototech91@gmail.com>2015-05-28 13:36:15 +0200
commitf1e11414e8e910b450ec5a0f7d2d488bc27d9f52 (patch)
treef5912ca5d1df079881a487855ff6a48586ecdf03 /phpBB/assets/javascript/editor.js
parent75dd91412bc565afbda8ab7033ee1d6a14050dd0 (diff)
parentabef078ab970c7ddc7645bd3d698e541896972e9 (diff)
downloadforums-f1e11414e8e910b450ec5a0f7d2d488bc27d9f52.tar
forums-f1e11414e8e910b450ec5a0f7d2d488bc27d9f52.tar.gz
forums-f1e11414e8e910b450ec5a0f7d2d488bc27d9f52.tar.bz2
forums-f1e11414e8e910b450ec5a0f7d2d488bc27d9f52.tar.xz
forums-f1e11414e8e910b450ec5a0f7d2d488bc27d9f52.zip
Merge remote-tracking branch 'marc1706/ticket/12542' into 3.1.x
* marc1706/ticket/12542: [ticket/12542] Use more specific CSS for drag-n-drop [ticket/12542] Do not use browser specific css for outline [ticket/12542] Properly check if textarea is undefined or null [ticket/12542] Use extended CSS for all browsers [ticket/12542] Rename javascript method and add doc block [ticket/12542] Add different outline colors for body & textarea [ticket/12542] Add initial drag-n-drop animation
Diffstat (limited to 'phpBB/assets/javascript/editor.js')
-rw-r--r--phpBB/assets/javascript/editor.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/assets/javascript/editor.js b/phpBB/assets/javascript/editor.js
index 5fd4f7eae3..c58e4d19dd 100644
--- a/phpBB/assets/javascript/editor.js
+++ b/phpBB/assets/javascript/editor.js
@@ -355,6 +355,9 @@ function getCaretPosition(txtarea) {
textarea = doc.forms[form_name].elements[text_name];
phpbb.applyCodeEditor(textarea);
+ if ($('#attach-panel').length) {
+ phpbb.showDragNDrop(textarea);
+ }
});
})(jQuery);