fix change avatar
parent
8c2dc65723
commit
0191868d82
|
@ -139,7 +139,7 @@ UserAvatarDirective = ($auth, $model, $rs, $confirm) ->
|
||||||
$confirm.notify('error', response.data._error_message)
|
$confirm.notify('error', response.data._error_message)
|
||||||
|
|
||||||
# Change photo
|
# Change photo
|
||||||
$el.on "click", ".button.change", ->
|
$el.on "click", ".js-change-avatar", ->
|
||||||
$el.find("#avatar-field").click()
|
$el.find("#avatar-field").click()
|
||||||
|
|
||||||
$el.on "change", "#avatar-field", (event) ->
|
$el.on "change", "#avatar-field", (event) ->
|
||||||
|
|
|
@ -20,7 +20,7 @@ div.wrapper(tg-user-profile, ng-controller="UserSettingsController as ctrl",
|
||||||
tg-avatar-model="avatarAttachment")
|
tg-avatar-model="avatarAttachment")
|
||||||
p The image will be cropped to 80x80px.<br>
|
p The image will be cropped to 80x80px.<br>
|
||||||
span.size-info.hidden(tg-bo-html="maxFileSizeMsg")
|
span.size-info.hidden(tg-bo-html="maxFileSizeMsg")
|
||||||
a.button-green.change(tg-bo-title="'Change photo. ' + maxFileSizeMsg") Change
|
a.button-green.change.js-change-avatar(tg-bo-title="'Change photo. ' + maxFileSizeMsg") Change
|
||||||
a.use-gravatar Use gravatar image
|
a.use-gravatar Use gravatar image
|
||||||
|
|
||||||
div.data
|
div.data
|
||||||
|
|
Loading…
Reference in New Issue