-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(profiles): add ability to crop avatar #1089
Conversation
Closes #1068 and maybe slash 106
почему бы и нет
@@ -1504,6 +1505,80 @@ $(document).on("click", "#add_image", (e) => { | |||
cropper.rotate(-90) | |||
}) | |||
}) | |||
|
|||
$(".ovk-diag-body #_takeSelfie").on("click", (e) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
можно без жквери
@@ -1504,6 +1505,80 @@ $(document).on("click", "#add_image", (e) => { | |||
cropper.rotate(-90) | |||
}) | |||
}) | |||
|
|||
$(".ovk-diag-body #_takeSelfie").on("click", (e) => { | |||
$("#avatarUpload")[0].style.display = "none" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
можно без жквери
@@ -334,8 +334,7 @@ function renderSub(): void | |||
$this->redirect($user->getURL()); | |||
} | |||
|
|||
function renderSetAvatar() | |||
{ | |||
function renderSetAvatar() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
что
@@ -18,9 +18,11 @@ | |||
{script "js/l10n.js"} | |||
{script "js/openvk.cls.js"} | |||
{script "js/node_modules/dashjs/dist/dash.all.min.js"} | |||
<script src="/assets/packages/static/openvk/js/node_modules/cropperjs/dist/cropper.js" type="module"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
макросом надо
ладно в принципе глобальных каких-то проблем не вижу, давайте заберём, а всё остальное пофиксим потом если надо будеь |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes #1068 and maybe slash 106