]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix visibility switcher for avatar
authorLukas Reschke <lukas@statuscode.ch>
Mon, 21 Nov 2016 20:50:57 +0000 (21:50 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 21 Nov 2016 20:50:57 +0000 (21:50 +0100)
Fixes #2223

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
settings/js/federationsettingsview.js
settings/templates/personal.php

index 7a629fc2ab6a9c72f8c010a491fdaef160342fc1..b71b450546d288ceaf74a439435825421edfde7f 100644 (file)
 
                        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();
index b81b19d9060751e344ccc85ebeabd52be7ea6aa0..8b5931c369f1d72cf9f37928222e82b095d4ca27 100644 (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>