diff --git a/README.md b/README.md index 9b7040d..2ebeccf 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ Currently this plugin supports the following options: - Default: `$.Deferred()` - Acceptable-Values: Any valid `jQuery.Deferred` object - - Function: A jQuery.Deferred object that is resolved once the print function is called + - Function: A jQuery.Deferred object that is resolved once the print function is called. Can be used [to setup callbacks - see wiki](https://github.com/DoersGuild/jQuery.print/wiki/Using-the-deferred-option-to-set-up-a-callback-after-printing) ####timeout diff --git a/bower.json b/bower.json index 00c93d0..8ed3c95 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "jQuery.print", "main": "jQuery.print.js", - "version": "1.5.0", + "version": "1.5.1", "homepage": "https://doersguild.github.io/jQuery.print/", "authors": [ "Sathvik P " diff --git a/demo/index.html b/demo/index.html index def2c01..61708a0 100644 --- a/demo/index.html +++ b/demo/index.html @@ -81,7 +81,9 @@

Element 4

//Add this at top prepend : "Hello World!!!
", //Add this on bottom - append : "
Buh Bye!" + append : "
Buh Bye!", + //Log to console when printing is done via a deffered callback + deferred: $.Deferred().done(function() { console.log('Printing done', arguments); }) }); }); @@ -94,14 +96,14 @@

Element 4

Print page - jQuery.print() - +