diff options
author | redmatrix <git@macgirvin.com> | 2016-08-09 22:52:14 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-08-09 22:52:14 -0700 |
commit | de12503fadbead1722824311d0887ad65b0cb925 (patch) | |
tree | 247a02daf134199623a14bdf47cb2208c72e1bc0 /view/tpl/jot-header.tpl | |
parent | 5238a27ab309c205bafad83a9ab16d2af7646d32 (diff) | |
download | volse-hubzilla-de12503fadbead1722824311d0887ad65b0cb925.tar.gz volse-hubzilla-de12503fadbead1722824311d0887ad65b0cb925.tar.bz2 volse-hubzilla-de12503fadbead1722824311d0887ad65b0cb925.zip |
allow dropping links on comments as well as posts
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-x | view/tpl/jot-header.tpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 85ce9dad8..9b00b25d3 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -269,13 +269,15 @@ function enableOnUser(){ function linkdrop(event) { var reply = event.dataTransfer.getData("text/uri-list"); event.preventDefault(); + var editwin = '#' + event.target.id; if(reply && reply.length) { reply = bin2hex(reply); $('#profile-rotator').spin('tiny'); $.get('{{$baseurl}}/linkinfo?f=&binurl=' + reply, function(data) { if (!editor) $("#profile-jot-text").val(""); initEditor(function(){ - addeditortext(data); + $(editwin).val( $(editwin).val() + data ); + // addeditortext(data); $('#profile-rotator').spin(false); }); }); |