Created
February 28, 2010 04:24
-
-
Save cmelbye/317193 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('form.section_edit_form').live('submit', function () { | |
var section_id = $(this).parent().attr('id').split("_")[1]; | |
$.ajax({ | |
url: "/wiki/ajax/section_edit/?section_id=" + section_id, | |
type: "POST", | |
data: $(this).serialize(), | |
success: function(data) { | |
$(this).parent().html(data); | |
} | |
}); | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment