server/apps/calendar/js/settings.js
2011-09-03 22:15:23 +02:00

15 lines
367 B
JavaScript

$(document).ready(function(){
$("#timezone").change( function(){
// Serialize the data
var post = $( "#timezone" ).serialize();
// Ajax foo
$.post( oc_webroot + '/apps/calendar/ajax/settimezone.php', post, function(data){
if( data.status == "success" ){
}
else{
$('#timezoneerror').html( data.data.message );
}
});
return false;
});
});