diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-06-20 14:33:02 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-06-20 14:33:31 +0200 |
commit | 76b12c4ae0ea9941b030f0a13786d0ac3fc32f76 (patch) | |
tree | d46fff7789a676d1912fcbf65c5d94cf9b95d783 /settings/js | |
parent | a7b7f5a76ce7fe3fb371f008d5de9c749ac5c1c1 (diff) | |
download | nextcloud-server-76b12c4ae0ea9941b030f0a13786d0ac3fc32f76.tar.gz nextcloud-server-76b12c4ae0ea9941b030f0a13786d0ac3fc32f76.zip |
add settings option for language
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/main.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/settings/js/main.js b/settings/js/main.js index e05fc68743c..010225bcb27 100644 --- a/settings/js/main.js +++ b/settings/js/main.js @@ -18,4 +18,18 @@ $(document).ready(function(){ }); 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; + }); } ); |