Skip to content

Commit

Permalink
Removes tipsy when password verification is going on
Browse files Browse the repository at this point in the history
  • Loading branch information
raghunayyar committed Sep 1, 2016
1 parent d2c4e8c commit f5faf14
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions core/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,9 @@ label.infield {
}
#personal-show + label {
height: 14px;
margin-top: 14px;
margin-left: -36px;
margin-top: -25px;
left: 295px;
display: block;
}
#passwordbutton {
margin-left: .5em;
Expand Down
2 changes: 2 additions & 0 deletions settings/js/personal.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,14 @@ $(document).ready(function () {
$('#passworderror').hide();
$("#passwordbutton").attr('disabled', 'disabled');
$("#passwordbutton").after("<span class='password-loading icon icon-loading-small-dark password-state'></span>");
$(".personal-show-label").hide();
// Ajax foo
$.post(OC.generateUrl('/settings/personal/changepassword'), post, function (data) {
if (data.status === "success") {
$(".password-loading").remove();
$("#passwordbutton").after("<span class='checkmark icon icon-checkmark password-state'></span>");
removeloader();
$(".personal-show-label").show();
$('#pass1').val('');
$('#pass2').val('').change();
OC.msg.finishedSaving('#password-error-msg', data);
Expand Down
2 changes: 1 addition & 1 deletion settings/templates/personal.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
placeholder="<?php echo $l->t('New password');?>"
data-typetoggle="#personal-show"
autocomplete="off" autocapitalize="off" autocorrect="off" />
<input type="checkbox" id="personal-show" name="show" /><label for="personal-show"></label>
<input type="checkbox" id="personal-show" name="show" /><label for="personal-show" class="personal-show-label"></label>
<input id="passwordbutton" type="submit" value="<?php echo $l->t('Change password');?>" />
<br/>
</form>
Expand Down

0 comments on commit f5faf14

Please sign in to comment.