mirror of
https://github.com/friendica/friendica
synced 2024-11-14 17:02:54 +00:00
9d5384f107
- Remove $editselect template value
53 lines
1.3 KiB
Smarty
53 lines
1.3 KiB
Smarty
<script language="javascript" type="text/javascript">
|
|
$("#prvmail-text").editor_autocomplete(baseurl + '/acl');
|
|
</script>
|
|
<script type="text/javascript" src="js/ajaxupload.js" ></script>
|
|
<script>
|
|
$(document).ready(function() {
|
|
var uploader = new window.AjaxUpload(
|
|
'prvmail-upload',
|
|
{ action: 'wall_upload/{{$nickname}}',
|
|
name: 'userfile',
|
|
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
|
|
onComplete: function(file,response) {
|
|
addeditortext(response);
|
|
$('#profile-rotator').hide();
|
|
}
|
|
}
|
|
);
|
|
|
|
$("#prvmail-text").bbco_autocomplete('bbcode');
|
|
});
|
|
|
|
function jotGetLink() {
|
|
reply = prompt("{{$linkurl}}");
|
|
if(reply && reply.length) {
|
|
$('#profile-rotator').show();
|
|
$.get('parse_url?url=' + reply, function(data) {
|
|
addeditortext(data);
|
|
$('#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();
|
|
$.get('parse_url?url=' + reply, function(data) {
|
|
addeditortext(data);
|
|
$('#profile-rotator').hide();
|
|
});
|
|
}
|
|
}
|
|
|
|
</script>
|
|
|