- $.post(window.location.pathname, form.serialize(), function(data) {
- if (data.status === 'error') {
- message('error', data.message);
- } else if (data.status === 'ok') {
- form.hide();
- goPage(window.location.pathname);
- message('info', data.message);
- }
- });
- })
- });
+ $.post(window.location.pathname, form.serialize(), function(data) {
+ if (data.status === 'error') {
+ message('error', data.message);
+ } else if (data.status === 'ok') {
+ form.hide();
+ goPage(window.location.pathname);
+ message('info', data.message);
+ }
+ });
+ })