fix sending the mail body
This commit is contained in:
Родитель
5627164de1
Коммит
101edf99e0
|
@ -24,10 +24,10 @@
|
||||||
OCP\JSON::checkLoggedIn();
|
OCP\JSON::checkLoggedIn();
|
||||||
OCP\JSON::checkAppEnabled('mail');
|
OCP\JSON::checkAppEnabled('mail');
|
||||||
|
|
||||||
$account_id = isset( $_GET['account_id'] ) ? $_GET['account_id'] : null;
|
$account_id = isset( $_POST['account_id'] ) ? $_POST['account_id'] : null;
|
||||||
$subject = isset( $_GET['subject'] ) ? $_GET['subject'] : null;
|
$subject = isset( $_POST['subject'] ) ? $_POST['subject'] : null;
|
||||||
$body = isset( $_GET['body'] ) ? $_GET['body'] : null;
|
$body = isset( $_POST['body'] ) ? $_POST['body'] : null;
|
||||||
$to = isset( $_GET['to'] ) ? $_GET['to'] : null;
|
$to = isset( $_POST['to'] ) ? $_POST['to'] : null;
|
||||||
|
|
||||||
$account = OCA\Mail\App::getAccount( OCP\User::getUser(), $account_id);
|
$account = OCA\Mail\App::getAccount( OCP\User::getUser(), $account_id);
|
||||||
if (!$account) {
|
if (!$account) {
|
||||||
|
|
|
@ -92,6 +92,7 @@ $(function () {
|
||||||
beforeSend:function () {
|
beforeSend:function () {
|
||||||
// $('#wait').show();
|
// $('#wait').show();
|
||||||
},
|
},
|
||||||
|
type: 'POST',
|
||||||
complete:function () {
|
complete:function () {
|
||||||
// $('#wait').hide();
|
// $('#wait').hide();
|
||||||
},
|
},
|
||||||
|
@ -99,7 +100,7 @@ $(function () {
|
||||||
'account_id': Mail.State.current_account_id,
|
'account_id': Mail.State.current_account_id,
|
||||||
'to':$('#to').val(),
|
'to':$('#to').val(),
|
||||||
'subject':$('#subject').val(),
|
'subject':$('#subject').val(),
|
||||||
'body':$('#body').val()},
|
'body':$('#new-message-body').val()},
|
||||||
success:function () {
|
success:function () {
|
||||||
// close composer
|
// close composer
|
||||||
$('#new-message-fields').slideUp();
|
$('#new-message-fields').slideUp();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче