You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
779 B
28 lines
779 B
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$("#loader").hide();
|
|
|
|
$('input[type=radio][name=jak_smpt]').change(function() {
|
|
if (this.value == '1') {
|
|
$('#smtp_options').fadeIn();
|
|
$('#oauth_options').fadeOut();
|
|
}
|
|
else if (this.value == '0') {
|
|
$('#smtp_options').fadeOut();
|
|
$('#oauth_options').fadeOut();
|
|
}
|
|
else if (this.value == '2') {
|
|
$('#oauth_options').fadeIn();
|
|
$('#smtp_options').fadeOut();
|
|
}
|
|
});
|
|
|
|
// JavaScript to disable send button and show loading.gif image
|
|
$("#sendTM").click(function() {
|
|
$("#loader").show();
|
|
$('#sendTM').attr("disabled", "disabled");
|
|
$('.jak_form').submit();
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|