diff options
Diffstat (limited to 'apps/calendar/js/settings.js')
-rw-r--r-- | apps/calendar/js/settings.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/calendar/js/settings.js b/apps/calendar/js/settings.js index b2da81b0d0f..90876389858 100644 --- a/apps/calendar/js/settings.js +++ b/apps/calendar/js/settings.js @@ -1,14 +1,10 @@ $(document).ready(function(){ $("#timezone").change( function(){ + OC.msg.startSaving('#calendar .msg') // 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 ); - } + OC.msg.finishedSaving('#calendar .msg', data); }); return false; }); |