2013-04-23 11:47:57 +00:00
|
|
|
<script language="javascript" type="text/javascript">
|
2017-01-27 03:50:27 +00:00
|
|
|
$("#prvmail-text").editor_autocomplete(baseurl + '/acl');
|
2013-04-23 11:47:57 +00:00
|
|
|
</script>
|
2018-01-28 21:17:36 +00:00
|
|
|
<script type="text/javascript" src="view/js/ajaxupload.js" ></script>
|
2013-04-23 11:47:57 +00:00
|
|
|
<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) {
|
2017-01-27 03:50:27 +00:00
|
|
|
addeditortext(response);
|
2013-04-23 11:47:57 +00:00
|
|
|
$('#profile-rotator').hide();
|
2017-01-27 03:50:27 +00:00
|
|
|
}
|
2013-04-23 11:47:57 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2016-04-14 21:59:29 +00:00
|
|
|
$("#prvmail-text").bbco_autocomplete('bbcode');
|
2013-04-23 11:47:57 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
function jotGetLink() {
|
|
|
|
reply = prompt("{{$linkurl}}");
|
|
|
|
if(reply && reply.length) {
|
|
|
|
$('#profile-rotator').show();
|
|
|
|
$.get('parse_url?url=' + reply, function(data) {
|
2017-01-27 03:50:27 +00:00
|
|
|
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) {
|
2017-01-27 03:50:27 +00:00
|
|
|
addeditortext(data);
|
2013-04-23 11:47:57 +00:00
|
|
|
$('#profile-rotator').hide();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-04 20:10:09 +00:00
|
|
|
function addeditortext(data) {
|
|
|
|
var currentText = $("#prvmail-text").val();
|
|
|
|
$("#prvmail-text").val(currentText + data);
|
|
|
|
}
|
|
|
|
|
2013-04-23 11:47:57 +00:00
|
|
|
</script>
|
|
|
|
|