lib/gitdocs/public/js/settings.js in gitdocs-0.5.0.pre6 vs lib/gitdocs/public/js/settings.js in gitdocs-0.5.0.pre7

- old
+ new

@@ -4,22 +4,25 @@ $('#settings').submit(function(e) { e.preventDefault(); $.ajax({ type: 'POST', url: this.action, data: $(this).serialize(), success: function() { - GitDocs.showAlert('<p><strong>Settings saved!</strong> Gitdocs has been restarted with your new settings.</p>', 'success') + GitDocs.showAlert( + '<p><strong>Settings saved!</strong> Gitdocs has been restarted with your new settings.</p>', + 'success' + ); } }); return false; }); } -} +}; $(document).ready(function() { GitDocs.settings.observeSettingsForm(); }); // Handle delete for settings form $('input.remove_share').live('click', function(e){ - $(this).siblings("input[type=hidden]").val("true") - $(this).parents("form").submit() -}); \ No newline at end of file + $(this).siblings("input[type=hidden]").val("true"); + $(this).parents("form").submit(); +});