mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
tweak settings passwords a bit
This commit is contained in:
parent
c9c1633882
commit
592eacf37d
1 changed files with 10 additions and 6 deletions
|
|
@ -54,12 +54,16 @@ $(document).ready(function(){
|
|||
input.focus();
|
||||
input.keypress(function(event) {
|
||||
if(event.keyCode == 13) {
|
||||
$.post(
|
||||
OC.filePath('admin','ajax','changepassword.php'),
|
||||
{username:uid,password:$(this).val()},
|
||||
function(result){}
|
||||
);
|
||||
input.blur();
|
||||
if($(this).val().length>0){
|
||||
$.post(
|
||||
OC.filePath('admin','ajax','changepassword.php'),
|
||||
{username:uid,password:$(this).val()},
|
||||
function(result){}
|
||||
);
|
||||
input.blur();
|
||||
}else{
|
||||
input.blur();
|
||||
}
|
||||
}
|
||||
});
|
||||
input.blur(function(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue