c64e0f64547ada48aa9df9a45e9b4202bd9dfb97
[friendica.git/.git] / view / templates / wallmsg-header.tpl
1 <script language="javascript" type="text/javascript">
2         $("#prvmail-text").editor_autocomplete(baseurl + '/search/acl');
3 </script>
4 <script>
5
6         function jotGetLink() {
7                 reply = prompt("{{$linkurl}}");
8                 if(reply && reply.length) {
9                         $('#profile-rotator').show();
10                         $.get('parse_url?url=' + reply, function(data) {
11                                 addeditortext(data);
12                                 $('#profile-rotator').hide();
13                         });
14                 }
15         }
16
17         function linkdropper(event) {
18                 var linkFound = event.dataTransfer.types.contains("text/uri-list");
19                 if(linkFound)
20                         event.preventDefault();
21         }
22
23         function linkdrop(event) {
24                 var reply = event.dataTransfer.getData("text/uri-list");
25                 event.target.textContent = reply;
26                 event.preventDefault();
27                 if(reply && reply.length) {
28                         $('#profile-rotator').show();
29                         $.get('parse_url?url=' + reply, function(data) {
30                                 addeditortext(data);
31                                 $('#profile-rotator').hide();
32                         });
33                 }
34         }
35
36 </script>
37