summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-20 14:33:02 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-06-20 14:33:31 +0200
commit76b12c4ae0ea9941b030f0a13786d0ac3fc32f76 (patch)
treed46fff7789a676d1912fcbf65c5d94cf9b95d783 /settings/js
parenta7b7f5a76ce7fe3fb371f008d5de9c749ac5c1c1 (diff)
downloadnextcloud-server-76b12c4ae0ea9941b030f0a13786d0ac3fc32f76.tar.gz
nextcloud-server-76b12c4ae0ea9941b030f0a13786d0ac3fc32f76.zip
add settings option for language
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/main.js14
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;
+ });
} );