From b7a228187fdaf29d6c4ea97ed1ee45f80b5bfce8 Mon Sep 17 00:00:00 2001 From: Dmitriy Shesterkin Date: Fri, 23 Jun 2017 23:30:45 +0300 Subject: [PATCH] fix --- conf/docker/entrypoint_stage.sh | 2 +- src/dokumentor/static/js/profile/asset.js | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/conf/docker/entrypoint_stage.sh b/conf/docker/entrypoint_stage.sh index 2f6ef43..89eb5b1 100755 --- a/conf/docker/entrypoint_stage.sh +++ b/conf/docker/entrypoint_stage.sh @@ -7,7 +7,7 @@ export ENV=stage cd /opt/app -bower i +bower install --allow-root # Collect static files echo "Collect static files" diff --git a/src/dokumentor/static/js/profile/asset.js b/src/dokumentor/static/js/profile/asset.js index 730006f..6e69608 100644 --- a/src/dokumentor/static/js/profile/asset.js +++ b/src/dokumentor/static/js/profile/asset.js @@ -1,3 +1,24 @@ /** * Created by mitri4 on 23.06.17. */ + +$(document).ready(function() { + + $uploadCrop = $('#stamp').croppie({ + enableExif: true, + viewport: { + width: 200, + height: 200, + type: 'circle' + }, + boundary: { + width: 300, + height: 300 + } + }); + + + +}); + +