]> git.mxchange.org Git - friendica.git/commitdiff
cropperjs: fix indention
authorrabuzarus <rabuzarus@t-online.de>
Thu, 29 Mar 2018 16:06:56 +0000 (18:06 +0200)
committerrabuzarus <rabuzarus@t-online.de>
Thu, 29 Mar 2018 16:06:56 +0000 (18:06 +0200)
view/templates/cropbody.tpl

index 5fedfd0df46cfa5e4061cd3f720d0279707ac426..144277310e0c1c50dc984d339c8530c70f33b972 100644 (file)
 
 <script type="text/javascript" language="javascript">
 
-               var image = document.getElementById('croppa');
-               var cropper = new Cropper(image, {
-                       aspectRatio: 1 / 1,
-                       viewMode: 1,
-                       preview: '#profile-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);
-                               $( '#y2' ).val(e.detail.y + e.detail.height);
-                               $( '#width' ).val(e.detail.scaleX);
-                               $( '#height' ).val(e.detail.scaleY);
-                       },
-                       ready: function() {
-                               // Add the "crop-preview" class to the preview element ("profile-photo-wrapper").
-                               var cwrapper = document.getElementById("profile-photo-wrapper");
-                               cwrapper.classList.add("crop-preview");
-                       }
-               });
+       var image = document.getElementById('croppa');
+       var cropper = new Cropper(image, {
+               aspectRatio: 1 / 1,
+               viewMode: 1,
+               preview: '#profile-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);
+                       $( '#y2' ).val(e.detail.y + e.detail.height);
+                       $( '#width' ).val(e.detail.scaleX);
+                       $( '#height' ).val(e.detail.scaleY);
+               },
+               ready: function() {
+                       // Add the "crop-preview" class to the preview element ("profile-photo-wrapper").
+                       var cwrapper = document.getElementById("profile-photo-wrapper");
+                       cwrapper.classList.add("crop-preview");
+               }
+       });
 
 </script>