From 51087f2d77cc920dc1e575bade5cde00c9d9136c Mon Sep 17 00:00:00 2001 From: cavemon Date: Tue, 23 May 2017 08:24:01 -0700 Subject: [PATCH] Fixed data attribute output in helper tool (#60) Fixing data attributes that are output in the text input - (focus-w to image-w and focus-h to image-h) --- js/jquery.focuspoint.helpertool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.focuspoint.helpertool.js b/js/jquery.focuspoint.helpertool.js index 632cb2c..d406894 100644 --- a/js/jquery.focuspoint.helpertool.js +++ b/js/jquery.focuspoint.helpertool.js @@ -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+'"'); } /*-----------------------------------------*/