friendica-github/view/templates/wallmsg-header.tpl

38 lines
876 B
Smarty
Raw Normal View History

2013-04-23 11:47:57 +00:00
<script language="javascript" type="text/javascript">
2016-01-21 12:28:29 +00:00
$("#prvmail-text").editor_autocomplete(baseurl+"/acl");
2013-04-23 11:47:57 +00:00
</script>
<script>
function jotGetLink() {
reply = prompt("{{$linkurl}}");
if(reply && reply.length) {
$('#profile-rotator').show();
$.get('parse_url?url=' + reply, function(data) {
addeditortext(data);
2013-04-23 11:47:57 +00: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();
$.get('parse_url?url=' + reply, function(data) {
addeditortext(data);
2013-04-23 11:47:57 +00:00
$('#profile-rotator').hide();
});
}
}
</script>