3 // Special XHR that sends in some code to be run
4 // when the full bookmark form gets loaded
5 BookmarkXHR: function(form)
7 SN.U.FormXHR(form, Bookmark.InitBookmarkForm);
11 // Special initialization function just for the
12 // second step in the bookmarking workflow
13 InitBookmarkForm: function() {
15 $('fieldset fieldset label').inFieldLabels({ fadeOpacity:0 });
16 SN.Init.NoticeFormSetup($('#form_new_bookmark'));
20 $(document).ready(function() {
22 // Stop normal live event stuff
23 $(document).off("submit", "form.ajax");
24 $(document).off("click", "form.ajax input[type=submit]");
26 // Make the bookmark submit super special
27 $(document).on('submit', '#form_initial_bookmark', function (e) {
28 Bookmark.BookmarkXHR($(this));
33 // Restore live event stuff to other forms & submit buttons