diff --git a/js/export.js b/js/export.js index b999d82c1a..f472c25ec8 100644 --- a/js/export.js +++ b/js/export.js @@ -1042,4 +1042,14 @@ AJAX.registerOnload('export.js', function () { e.preventDefault(); setSelectOptions(false); }); + + $('#buttonGo').on('click', function () { + var timeLimit = parseInt($(this).attr('data-exec-time-limit')); + + // If the time limit set is zero, + // then time out won't occur so no need to check for time out. + if (timeLimit > 0) { + Export.checkTimeOut(timeLimit); + } + }); }); diff --git a/js/export_output.js b/js/export_output.js index 5a0fa10b42..dd87d448ca 100644 --- a/js/export_output.js +++ b/js/export_output.js @@ -5,4 +5,9 @@ AJAX.registerOnload('export_output.js', function () { $('#export_refresh_form').trigger('submit'); } }); + + $('#export_refresh_btn').on('click', function (e) { + e.preventDefault(); + $('#export_refresh_form').trigger('submit'); + }); }); diff --git a/js/rte.js b/js/rte.js index 39324c43c7..2563f41295 100644 --- a/js/rte.js +++ b/js/rte.js @@ -923,6 +923,11 @@ $(function () { */ $(document).on('click', 'a.ajax.add_anchor, a.ajax.edit_anchor', function (event) { event.preventDefault(); + + if ($(this).hasClass('add_anchor')) { + $.datepicker.initialized = false; + } + var type = $(this).attr('href').substr(0, $(this).attr('href').indexOf('&')); if (type.indexOf('routine') !== -1) { type = 'routine'; diff --git a/libraries/classes/Export.php b/libraries/classes/Export.php index 1a316b95e5..57f95c60e1 100644 --- a/libraries/classes/Export.php +++ b/libraries/classes/Export.php @@ -600,7 +600,7 @@ class Export $html .= $back_button; $refreshButton = '