1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/themes/greydragon/js/dialog.js
2009-11-30 08:16:33 -08:00

18 lines
376 B
JavaScript

function setupLoginForm() {
setupAjaxForm('#gLoginForm');
}
function setupAjaxForm($form_id) {
var options = {
dataType: "json",
success: function(data) {
if (data.result == "success") {
if (data.location) { window.location = data.location; }
else { window.parent.Shadowbox.close(); }
}
}
};
$($form_id).ajaxForm(options);
};