3 var form = $('#form_new_bookmark');
4 form.append('<input type="hidden" name="ajax" value="1"/>');
7 // If in popup blocker situation, we'll have to redirect back.
8 setTimeout(function() {
9 window.location = $('#url').val();
12 form.ajaxForm({dataType: 'xml',
14 beforeSend: function(formData) {
15 form.addClass('processing');
16 form.find('#submit').addClass('disabled');
18 error: function (xhr, textStatus, errorThrown) {
19 form.removeClass('processing');
20 form.find('#submit').removeClass('disabled');
23 success: function(data, textStatus) {
24 form.removeClass('processing');
25 form.find('#submit').removeClass('disabled');