diff --git a/README.md b/README.md index b582356..d59c79c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Print-O-Matic * Tags: print, print element, print shortcode, send to print, print button, print me, jQuery, print page, javascript, twinpictures, plugin oven * Requires at least: 4.9 * Tested up to: 6.0 -* Stable tag: 2.1.5 +* Stable tag: 2.1.6 * License: GPLv2 or later * License URI: https://www.gnu.org/licenses/gpl-2.0.html diff --git a/js/printomat.js b/js/printomat.js index 03f57c3..ed52c81 100755 --- a/js/printomat.js +++ b/js/printomat.js @@ -1,5 +1,5 @@ /*! - * Print-O-Matic JavaScript v2.0.9 + * Print-O-Matic JavaScript v2.0.10 * https://pluginoven.com/plugins/print-o-matic/ */ @@ -88,6 +88,10 @@ jQuery(document).ready(function() { pause_time = this_print_data.pom_pause_time; } + //pause_time is now pause to allow the browser to render the print preview before resetting back to display + //force at least 2 seconds + pause_time = pause_time + 2000; + if(targets){ PrintElements.print(targets, pause_time); } diff --git a/print-o-matic.php b/print-o-matic.php index 54fe104..6ba31d6 100644 --- a/print-o-matic.php +++ b/print-o-matic.php @@ -4,7 +4,7 @@ Text Domain: print-o-matic Plugin URI: https://pluginoven.com/plugins/print-o-matic/ Description: Shortcode that adds a printer icon, allowing the user to print the post or a specified HTML element in the post. -Version: 2.1.5 +Version: 2.1.6 Author: twinpictures Author URI: https://twinpictures.de License: GPL2 @@ -17,7 +17,7 @@ */ class WP_Print_O_Matic { - var $version = '2.1.5'; + var $version = '2.1.6'; var $domain = 'printomat'; var $options_name = 'WP_Print_O_Matic_options'; var $options = array( @@ -65,7 +65,7 @@ function load_textdomain() { */ function printMaticInit() { //script - wp_register_script('printomatic-js', plugins_url('js/printomat.js', __FILE__), array('jquery'), '2.0.8', true); + wp_register_script('printomatic-js', plugins_url('js/printomat.js', __FILE__), array('jquery'), '2.0.10', true); wp_register_script('pe-js', plugins_url('js/print_elements.js', __FILE__), array('printomatic-js'), '1.1', true); //prep options for injection diff --git a/readme.txt b/readme.txt index 9435a68..9df00d1 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://pluginoven.com/panares-fund/ Tags: print, print element, print shortcode, send to print, print button, print me, jQuery, print page, javascript, twinpictures, plugin oven Requires at least: 4.9 Tested up to: 6.0 -Stable tag: 2.1.5 +Stable tag: 2.1.6 Requires PHP: 7.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -50,6 +50,9 @@ We like to rock the party. == Changelog == += 2.1.6 = +* pause before print is now pause time to allow the browser to render the print-preview before resetting back to display layout + = 2.1.5 = * reverted back to wp_localize_script to pass print data to js script * moved pause before print to the post print cleanup @@ -241,6 +244,5 @@ We like to rock the party. * The plug-in was forked and completely rewritten from Print Button Shortcode by MyWebsiteAdvisor. == Upgrade Notice == -* reverted back to wp_localize_script to pass print data to js script -* moved pause before print to the post print cleanup -* fully tested with version 6.0 +* pause before print is now pause time to allow the browser to render the print-preview before resetting back to display layout +