aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/cropcover.tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-07 12:47:13 +0000
committerMario <mario@mariovavti.com>2023-05-07 12:47:13 +0000
commit4d3a48d1c192ed54dfabaea5e251ddd083070b21 (patch)
treed44d62ae9937bb28f214d946bcfbc1ac75eb3cbd /view/tpl/cropcover.tpl
parenta56f9ab4e6e6438deffe9db843be50b05cbca1f6 (diff)
downloadvolse-hubzilla-4d3a48d1c192ed54dfabaea5e251ddd083070b21.tar.gz
volse-hubzilla-4d3a48d1c192ed54dfabaea5e251ddd083070b21.tar.bz2
volse-hubzilla-4d3a48d1c192ed54dfabaea5e251ddd083070b21.zip
cropper fixup
Diffstat (limited to 'view/tpl/cropcover.tpl')
-rw-r--r--view/tpl/cropcover.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/cropcover.tpl b/view/tpl/cropcover.tpl
index ba91a2cce..eda6a7ba8 100644
--- a/view/tpl/cropcover.tpl
+++ b/view/tpl/cropcover.tpl
@@ -15,8 +15,8 @@ var image = document.getElementById('croppa');
var cropper = new Cropper(image, {
aspectRatio: 2.75 / 1,
viewMode: 1,
- preview: '.crop-preview',
- crop: function(e) {
+ preview: '#cover-photo-wrapper, .crop-preview',
+ crop: function(e) {
$( '#x1' ).val(e.detail.x);
$( '#y1' ).val(e.detail.y);
$( '#x2' ).val(e.detail.x + e.detail.width);