Skip to content

Commit

Permalink
Merge pull request #90 from jasonday/value-fix
Browse files Browse the repository at this point in the history
Fix value handling. Fixes #57
  • Loading branch information
oculus42 authored Jan 15, 2017
2 parents ba7bad4 + 3a2810c commit 3b7007e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
10/15/2017 Added quoting around values to correct behavior of complex values
Bumped to 1.7.1

12/14/2016 Added support for arbitrary BASE urls.
Bumped to 1.7.0, following semver (new feature).

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "print-this",
"version": "1.7.0",
"version": "1.7.1",
"description": "Printing plug-in for jQuery",
"main": "printThis.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion printThis.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "printThis",
"version": "1.7.0",
"version": "1.7.1",
"title": "printThis",
"description": "Printing plug-in for jQuery. Print specific page elements, add print options, maintain or add new styling using jQuery.",
"author": {
Expand Down
4 changes: 2 additions & 2 deletions printThis.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* printThis v1.7.0
* printThis v1.7.1
* @desc Printing plug-in for jQuery
* @author Jason Day
*
Expand Down Expand Up @@ -166,7 +166,7 @@
if ($this.is(':checkbox')) {
$iframeInput.attr('checked', 'checked');
} else if ($this.is(':radio')) {
$doc.find('input[name="' + $name + '"][value=' + $value + ']').attr('checked', 'checked');
$doc.find('input[name="' + $name + '"][value="' + $value + '"]').attr('checked', 'checked');
}
}

Expand Down

0 comments on commit 3b7007e

Please sign in to comment.