]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix show password button for password change 5896/head
authorMorris Jobke <hey@morrisjobke.de>
Wed, 26 Jul 2017 20:54:23 +0000 (22:54 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 26 Jul 2017 20:57:56 +0000 (22:57 +0200)
* fix the show password button on the personal page
* before: if the password change failed the show password icon was not shown again
* after: show password icon is visible

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
settings/js/personal.js

index effce9de07e9bf34a9357ec18b56c6ca0ec9a270..5d8a0b8b49e0978a61166e791e573b5ea264f3dd 100644 (file)
@@ -168,7 +168,6 @@ $(document).ready(function () {
                                if (data.status === "success") {
                                        $("#passwordbutton").after("<span class='checkmark icon icon-checkmark password-state'></span>");
                                        removeloader();
-                                       $(".personal-show-label").show();
                                        $('#pass1').val('');
                                        $('#pass2').val('').change();
                                }
@@ -184,6 +183,7 @@ $(document).ready(function () {
                                                }
                                        );
                                }
+                               $(".personal-show-label").show();
                                $(".password-loading").remove();
                                $("#passwordbutton").removeAttr('disabled');
                        });