private mail buttons
This commit is contained in:
@@ -52,10 +52,10 @@ else
|
||||
'prvmail-upload-wrapper',
|
||||
{ action: 'wall_upload/{{$nickname}}',
|
||||
name: 'userfile',
|
||||
onSubmit: function(file,ext) { $('#profile-rotator').spin('tiny'); },
|
||||
onSubmit: function(file,ext) { $('#prvmail-rotator').spin('tiny'); },
|
||||
onComplete: function(file,response) {
|
||||
addeditortext(response);
|
||||
$('#profile-rotator').spin(false);
|
||||
addmailtext(response);
|
||||
$('#prvmail-rotator').spin(false);
|
||||
}
|
||||
}
|
||||
);
|
||||
@@ -64,23 +64,23 @@ else
|
||||
'prvmail-attach-wrapper',
|
||||
{ action: 'wall_attach/{{$nickname}}',
|
||||
name: 'userfile',
|
||||
onSubmit: function(file,ext) { $('#profile-rotator').spin('tiny'); },
|
||||
onSubmit: function(file,ext) { $('#prvmail-rotator').spin('tiny'); },
|
||||
onComplete: function(file,response) {
|
||||
addeditortext(response);
|
||||
$('#profile-rotator').spin(false);
|
||||
addmailtext(response);
|
||||
$('#prvmail-rotator').spin(false);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
function jotGetLink() {
|
||||
function prvmailJotGetLink() {
|
||||
reply = prompt("{{$linkurl}}");
|
||||
if(reply && reply.length) {
|
||||
$('#profile-rotator').spin('tiny');
|
||||
$('#prvmail-rotator').spin('tiny');
|
||||
$.get('parse_url?url=' + reply, function(data) {
|
||||
addeditortext(response);
|
||||
$('#profile-rotator').spin(false);
|
||||
addmailtext(data);
|
||||
$('#prvmail-rotator').spin(false);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -103,15 +103,15 @@ else
|
||||
event.target.textContent = reply;
|
||||
event.preventDefault();
|
||||
if(reply && reply.length) {
|
||||
$('#profile-rotator').spin('tiny');
|
||||
$('#prvmail-rotator').spin('tiny');
|
||||
$.get('parse_url?url=' + reply, function(data) {
|
||||
addeditortext(response);
|
||||
$('#profile-rotator').spin(false);
|
||||
addmailtext(data);
|
||||
$('#prvmail-rotator').spin(false);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function addeditortext(data) {
|
||||
function addmailtext(data) {
|
||||
if(plaintext == 'none') {
|
||||
var currentText = $("#prvmail-text").val();
|
||||
$("#prvmail-text").val(currentText + data);
|
||||
|
Reference in New Issue
Block a user