Added SMTP settings editing to the UI.

Added testing of SMTP settings to the settings page.
Cleaned up some extraneous lines of JS and HTML.
This commit is contained in:
Mark McDowall 2011-10-26 22:46:54 -07:00
commit 2c93a27962
13 changed files with 368 additions and 107 deletions

View file

@ -1,23 +1,8 @@
$(document).ready(function () {
var options = {
target: '#result',
//beforeSubmit: showRequest,
//success: showResponse,
type: 'post',
resetForm: false
};
$('#form').ajaxForm(options);
$('#save_button').removeAttr('disabled');
});
function showRequest(formData, jqForm, options) {
$("#result").empty().html('Saving...');
$("#form :input").attr("disabled", true);
$('#saveAjax').show();
}
function showResponse(responseText, statusText, xhr, $form) {
$("#result").empty().html(responseText);
$("#form :input").attr("disabled", false);
$('#saveAjax').hide();
}
});