diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-13 04:04:48 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-13 05:13:34 +0200 |
commit | 4a5ee765cf5030c7d92d88687e886079f6bafb1e (patch) | |
tree | 0b87acdf2f21f56dc1b97b063121899f3cae87bc /settings/js/personal.js | |
parent | 67156f87e3757fbd5e692e7d6b2209cfafc6c3cf (diff) | |
download | nextcloud-server-4a5ee765cf5030c7d92d88687e886079f6bafb1e.tar.gz nextcloud-server-4a5ee765cf5030c7d92d88687e886079f6bafb1e.zip |
merged admin, help and settings to settings
Diffstat (limited to 'settings/js/personal.js')
-rw-r--r-- | settings/js/personal.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js new file mode 100644 index 00000000000..f6b7eeb7584 --- /dev/null +++ b/settings/js/personal.js @@ -0,0 +1,35 @@ +$(document).ready(function(){ + $("#passwordbutton").click( function(){ + // Serialize the data + var post = $( "#passwordform" ).serialize(); + $('#passwordchanged').hide(); + $('#passworderror').hide(); + // Ajax foo + $.post( 'ajax/changepassword.php', post, function(data){ + if( data.status == "success" ){ + $('#pass1').val(''); + $('#pass2').val(''); + $('#passwordchanged').show(); + } + else{ + $('#passworderror').html( data.data.message ); + $('#passworderror').show(); + } + }); + return false; + }); + + $("#languageinput").change( function(){ + // Serialize the data + var post = $( "#languageinput" ).serialize(); + // Ajax foo + $.post( 'ajax/setlanguage.php', post, function(data){ + if( data.status == "success" ){ + } + else{ + $('#passworderror').html( data.data.message ); + } + }); + return false; + }); +} ); |