This commit is contained in:
Thomas Müller 2013-08-17 17:09:41 +02:00
Родитель 5627164de1
Коммит 101edf99e0
2 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -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();