]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/msg-header.tpl
Merge branch '2021.03-rc' into copyright-2021
[friendica.git] / view / templates / msg-header.tpl
index 6e3a33fdca9d0869d01a9b8261f4d2a810ea315d..1e1d51661bee9f3efe25870d23eaae39589eef4d 100644 (file)
@@ -1,7 +1,7 @@
 <script language="javascript" type="text/javascript">
-       $("#prvmail-text").editor_autocomplete(baseurl + '/acl');
+       $("#prvmail-text").editor_autocomplete(baseurl + '/search/acl');
 </script>
-<script type="text/javascript" src="js/ajaxupload.js" ></script>
+<script type="text/javascript" src="view/js/ajaxupload.js?v={{$smarty.const.FRIENDICA_VERSION}}" ></script>
 <script>
        $(document).ready(function() {
                var uploader = new window.AjaxUpload(
@@ -23,7 +23,7 @@
                reply = prompt("{{$linkurl}}");
                if(reply && reply.length) {
                        $('#profile-rotator').show();
-                       $.get('parse_url?url=' + reply, function(data) {
+                       $.get('parseurl?url=' + reply, function(data) {
                                addeditortext(data);
                                $('#profile-rotator').hide();
                        });
                event.preventDefault();
                if(reply && reply.length) {
                        $('#profile-rotator').show();
-                       $.get('parse_url?url=' + reply, function(data) {
+                       $.get('parseurl?url=' + reply, function(data) {
                                addeditortext(data);
                                $('#profile-rotator').hide();
                        });
                }
        }
 
+       function addeditortext(data) {
+               var currentText = $("#prvmail-text").val();
+               $("#prvmail-text").val(currentText + data);
+       }
+
 </script>