X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjot-header.tpl;h=ecfed6c423b23eb179cd45a4b0cc96c529e3bc93;hb=961e34f67f477d18619d7d9a4aa8856a879b679a;hp=8505b53bc247a56a0fb03f35f362f868e572075b;hpb=a93f5627c1cb05f2f2c14cc390d38799eaf461e8;p=friendica.git
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index 8505b53bc2..ecfed6c423 100644
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -1,32 +1,131 @@
-
-
-
+
+ function linkdropper(event) {
+ var linkFound = event.dataTransfer.types.contains("text/uri-list");
+ if(linkFound)
+ event.preventDefault();
+ }
+
+ function linkdrop(event) {
+ var reply = event.dataTransfer.getData("text/uri-list");
+ event.target.textContent = reply;
+ event.preventDefault();
+ if(reply && reply.length) {
+ reply = bin2hex(reply);
+ $('#profile-rotator').show();
+ $.get('parse_url?binurl=' + reply, function(data) {
+ if (!editor) $("#profile-jot-text").val("");
+ initEditor(function(){
+ tinyMCE.execCommand('mceInsertRawHTML',false,data);
+ $('#profile-rotator').hide();
+ });
+ });
+ }
+ }
+
+ function itemTag(id) {
+ reply = prompt("$term");
+ if(reply && reply.length) {
+ reply = reply.replace('#','');
+ if(reply.length) {
-
\ No newline at end of file
+