diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-09-25 07:30:15 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-09-25 07:30:15 +0400 |
commit | 2dd4d251b8d1b7d82f3dfa1b6010c9f26b1ab8b6 (patch) | |
tree | 08878a96a40c4e0ccaac6dbda87db450c0e52ffc /plugins | |
parent | 085d752a47ad9535cdf7252bd9507830406782e9 (diff) |
Show success message after a scheduled report is successfully sent when 'Send report now' is clicked.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/PDFReports/javascripts/pdf.js | 7 | ||||
-rw-r--r-- | plugins/PDFReports/templates/index.twig | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/plugins/PDFReports/javascripts/pdf.js b/plugins/PDFReports/javascripts/pdf.js index f6f3398a1e..67e02c73ae 100644 --- a/plugins/PDFReports/javascripts/pdf.js +++ b/plugins/PDFReports/javascripts/pdf.js @@ -108,6 +108,13 @@ function initManagePdf() { var ajaxHandler = new ajaxHelper(); ajaxHandler.addParams(parameters, 'POST'); ajaxHandler.setLoadingElement(); + ajaxHandler.setCallback(function (response) { + $('.reportSentSuccess').fadeIn('slow', function () { + setTimeout(function () { + $('.reportSentSuccess').fadeOut('slow'); + }, 1000); + }); + }); ajaxHandler.send(true); }); diff --git a/plugins/PDFReports/templates/index.twig b/plugins/PDFReports/templates/index.twig index 386ba80e79..f5f2f779a5 100644 --- a/plugins/PDFReports/templates/index.twig +++ b/plugins/PDFReports/templates/index.twig @@ -10,6 +10,7 @@ <div class="centerLargeDiv"> <h2>{{ 'ScheduledReports_ManageEmailReports'|translate }}</h2> + <span class="ajaxSuccess reportSentSuccess" style="display:none;">{{ 'ReportSent'|translate }}!</span> <div class="entityContainer"> {% import 'ajaxMacros.twig' as ajax %} |