1 <script language="javascript" type="text/javascript">
2 $("#prvmail-text").editor_autocomplete(baseurl + '/search/acl');
4 <script type="text/javascript" src="view/js/ajaxupload.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
6 $(document).ready(function() {
7 var uploader = new window.AjaxUpload(
9 { action: 'wall_upload/{{$nickname}}',
11 onSubmit: function(file,ext) { $('#profile-rotator').show(); },
12 onComplete: function(file,response) {
13 addeditortext(response);
14 $('#profile-rotator').hide();
19 $("#prvmail-text").bbco_autocomplete('bbcode');
22 function jotGetLink() {
23 reply = prompt("{{$linkurl}}");
24 if(reply && reply.length) {
25 $('#profile-rotator').show();
26 $.get('parseurl?url=' + reply, function(data) {
28 $('#profile-rotator').hide();
33 function linkdropper(event) {
34 var linkFound = event.dataTransfer.types.contains("text/uri-list");
36 event.preventDefault();
39 function linkdrop(event) {
40 var reply = event.dataTransfer.getData("text/uri-list");
41 event.target.textContent = reply;
42 event.preventDefault();
43 if(reply && reply.length) {
44 $('#profile-rotator').show();
45 $.get('parseurl?url=' + reply, function(data) {
47 $('#profile-rotator').hide();
52 function addeditortext(data) {
53 var currentText = $("#prvmail-text").val();
54 $("#prvmail-text").val(currentText + data);