mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 01:33:51 -04:00
Submit the form using ajaxSubmit
This commit is contained in:
@@ -74,10 +74,9 @@ function openDialog(element) {
|
||||
var buttons = {};
|
||||
buttons["Submit"] = function() {
|
||||
var form = $("#gDialog").find("form");
|
||||
$.post(form.attr("action"), form.serialize(),
|
||||
function(data, textStatus) {
|
||||
form.ajaxSubmit(function(data, textStatus) {
|
||||
form.html(data);
|
||||
}, "html");
|
||||
});
|
||||
}
|
||||
buttons["Reset"] = function() {
|
||||
var form = $("#gDialog").find("form");
|
||||
|
||||
Reference in New Issue
Block a user