Fix visibility switcher for avatar

Fixes #2223

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2016-11-21 21:50:57 +01:00
parent 206ef51eac
commit 267ecab405
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
2 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,7 @@
this._config.set(field + 'Scope', scope);
$('#' + field).parent().find('span > input').val(scope);
$('#' + field + 'scope').val(scope);
// TODO: user loading/success feedback
this._config.save();

View File

@ -60,6 +60,7 @@
<div class="inlineblock button primary" id="sendcropperbutton"><?php p($l->t('Choose as profile picture')); ?></div>
</div>
</div>
<span class="icon-checkmark hidden"/>
<input type="hidden" id="avatarscope" value="<?php p($_['avatarScope']) ?>">
</form>
</div>