Skip to content

Commit

Permalink
Fixed data attribute output in helper tool (#60)
Browse files Browse the repository at this point in the history
Fixing data attributes that are output in the text input - (focus-w to image-w and focus-h to image-h)
  • Loading branch information
cavemon authored and jonom committed May 23, 2017
1 parent 66944ed commit 51087f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.focuspoint.helpertool.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
/*-----------------------------------------*/

function printDataAttr(){
$dataAttrInput.val('data-focus-x="'+focusPointAttr.x.toFixed(2)+'" data-focus-y="'+focusPointAttr.y.toFixed(2)+'" data-focus-w="'+focusPointAttr.w+'" data-focus-h="'+focusPointAttr.h+'"');
$dataAttrInput.val('data-focus-x="'+focusPointAttr.x.toFixed(2)+'" data-focus-y="'+focusPointAttr.y.toFixed(2)+'" data-image-w="'+focusPointAttr.w+'" data-image-h="'+focusPointAttr.h+'"');
}

/*-----------------------------------------*/
Expand Down

0 comments on commit 51087f2

Please sign in to comment.