mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-19 16:03:14 +00:00
Merge pull request #1891 from lostdalek/hotfix/PHRAS-515
PHRAS-515 - fix export by email form submission
This commit is contained in:
@@ -794,8 +794,8 @@
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#sendmail .sendmail_button').bind('click',function(){
|
var submitEmailForm = function () {
|
||||||
if(!check_subdefs($('#sendmail'))) {
|
if (!check_subdefs($('#sendmail'))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -803,12 +803,18 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($('iframe[name=""]').length === 0) {
|
$.post('{{ path('export_mail') }}', $('#sendmail form').serialize(), function (response) {
|
||||||
$('body').append('<iframe style="display:none;" name="sendmail_target"></iframe>');
|
dialog.Close();
|
||||||
}
|
});
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
$('#sendmail form').submit();
|
$('#sendmail form').on('submit', function () {
|
||||||
dialog.Close();
|
return submitEmailForm();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#sendmail .sendmail_button').on('click', function () {
|
||||||
|
return submitEmailForm();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.datepicker', dialog.getDomElement()).datepicker({
|
$('.datepicker', dialog.getDomElement()).datepicker({
|
||||||
|
Reference in New Issue
Block a user