fix change avatar

stable
Juanfran 2015-03-11 12:04:22 +01:00
parent 8c2dc65723
commit 0191868d82
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ UserAvatarDirective = ($auth, $model, $rs, $confirm) ->
$confirm.notify('error', response.data._error_message)
# Change photo
$el.on "click", ".button.change", ->
$el.on "click", ".js-change-avatar", ->
$el.find("#avatar-field").click()
$el.on "change", "#avatar-field", (event) ->

View File

@ -20,7 +20,7 @@ div.wrapper(tg-user-profile, ng-controller="UserSettingsController as ctrl",
tg-avatar-model="avatarAttachment")
p The image will be cropped to 80x80px.<br>
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
div.data