Skip to content

Commit

Permalink
Исправление показа величин
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriitux committed Jun 28, 2019
1 parent 7b4dcf0 commit 16f00d6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions media/com_quantummanager/js/quantumcropperjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,10 @@ window.Quantumcropperjs = function(Filemanager, QuantumCropperjsElement, options
self.changeCropperJS();
},
crop: function(event) {
console.log(event);
self.CropWidthValue.value = parseFloat(event.detail.width);
self.CropHeightValue.value = parseFloat(event.detail.height);
self.CropWidthValue.setAttribute('data-old', self.CropWidthValue.value);
self.CropHeightValue.setAttribute('data-old', self.CropHeightValue.value);
self.CropWidthValue.value = Math.round(parseFloat(event.detail.width));
self.CropHeightValue.value = Math.round(parseFloat(event.detail.height));
self.CropWidthValue.setAttribute('data-old', parseFloat(event.detail.width));
self.CropHeightValue.setAttribute('data-old', parseFloat(event.detail.height));
}
};

Expand Down

0 comments on commit 16f00d6

Please sign in to comment.