2013-04-23 07:47:57 -04:00
|
|
|
<script language="javascript" type="text/javascript">
|
2019-10-03 22:40:42 -04:00
|
|
|
$("#prvmail-text").editor_autocomplete(baseurl + '/search/acl');
|
2013-04-23 07:47:57 -04:00
|
|
|
</script>
|
2021-05-19 17:47:15 -04:00
|
|
|
<script type="text/javascript" src="view/js/ajaxupload.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
|
2013-04-23 07:47:57 -04:00
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
var uploader = new window.AjaxUpload(
|
|
|
|
'prvmail-upload',
|
2022-10-30 00:17:54 -04:00
|
|
|
{ action: 'profile/{{$nickname}}/photos/upload',
|
2013-04-23 07:47:57 -04:00
|
|
|
name: 'userfile',
|
|
|
|
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
|
|
|
|
onComplete: function(file,response) {
|
2017-01-26 22:50:27 -05:00
|
|
|
addeditortext(response);
|
2013-04-23 07:47:57 -04:00
|
|
|
$('#profile-rotator').hide();
|
2017-01-26 22:50:27 -05:00
|
|
|
}
|
2013-04-23 07:47:57 -04:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2016-04-14 17:59:29 -04:00
|
|
|
$("#prvmail-text").bbco_autocomplete('bbcode');
|
2013-04-23 07:47:57 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
function jotGetLink() {
|
|
|
|
reply = prompt("{{$linkurl}}");
|
|
|
|
if(reply && reply.length) {
|
|
|
|
$('#profile-rotator').show();
|
2021-02-16 10:20:51 -05:00
|
|
|
$.get('parseurl?url=' + reply, function(data) {
|
2017-01-26 22:50:27 -05:00
|
|
|
addeditortext(data);
|
2013-04-23 07:47:57 -04:00
|
|
|
$('#profile-rotator').hide();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
|
|
|
$('#profile-rotator').show();
|
2021-02-16 10:20:51 -05:00
|
|
|
$.get('parseurl?url=' + reply, function(data) {
|
2017-01-26 22:50:27 -05:00
|
|
|
addeditortext(data);
|
2013-04-23 07:47:57 -04:00
|
|
|
$('#profile-rotator').hide();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-04 16:10:09 -04:00
|
|
|
function addeditortext(data) {
|
|
|
|
var currentText = $("#prvmail-text").val();
|
|
|
|
$("#prvmail-text").val(currentText + data);
|
|
|
|
}
|
|
|
|
|
2013-04-23 07:47:57 -04:00
|
|
|
</script>
|
|
|
|
|