Merge pull request #2224 from nextcloud/fix-visibility-switcher

Fix visibility switcher for avatar
This commit is contained in:
Lukas Reschke 2016-11-24 15:47:55 +01:00 committed by GitHub
commit cbf943301f
3 changed files with 3 additions and 2 deletions

View file

@ -113,7 +113,7 @@
this._context = context;
var currentlyActiveValue = $('#'+context.target.closest('form').id).find('.icon-checkmark > input')[0].value;
for(var i = 0 in this._scopes) {
for(var i in this._scopes) {
this._scopes[i].active = false;
}

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>