diff --git a/core/assets/js/admin-log.js b/core/assets/js/admin-log.js index 14e2c52..5aa3306 100644 --- a/core/assets/js/admin-log.js +++ b/core/assets/js/admin-log.js @@ -114,11 +114,16 @@ }); request.done(function(response) { - if ("success" === response.status) { - window.location.href = response.file; - } else { - alert(response.message); - } + $(".helpfulLogsClickable").remove(); + + var clickableElement = $("", { + class: "helpfulLogsClickable", + href: response.file, + download: "", + style: "position:absolute;top:0;left:-9999px;" + }).appendTo("body"); + + $(".helpfulLogsClickable")[0].click(); }); } } diff --git a/helpful.php b/helpful.php index 645808b..9b40c14 100644 --- a/helpful.php +++ b/helpful.php @@ -2,7 +2,7 @@ /** * Plugin Name: Helpful * Description: Add a fancy feedback form under your posts or post-types and ask your visitors a question. Give them the abbility to vote with yes or no. - * Version: 4.4.68 + * Version: 4.4.69 * Author: Pixelbart * Author URI: https://pixelbart.de * Text Domain: helpful diff --git a/readme.txt b/readme.txt index 02ab30c..56f5a24 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: helpful, poll, feedback, reviews, vote, review, voting Requires at least: 4.6 Tested up to: 5.9 Requires PHP: 5.6.20 -Stable tag: 4.4.68 +Stable tag: 4.4.69 License: MIT License License URI: https://opensource.org/licenses/MIT