Skip to content

Commit

Permalink
Need to allow selecting from address when using Mandrill, Mailgun or …
Browse files Browse the repository at this point in the history
…SES. Closes #196

Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Sep 9, 2015
1 parent dd8ee4c commit 8bc7228
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions resources/views/settings/_script.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
var value, smtp;
value = self.value ? self.value : '';
smtp = ['email_host', 'email_port', 'email_address', 'email_username', 'email_password', 'email_encryption'];
smtp = ['email_host', 'email_port', 'email_username', 'email_password', 'email_encryption'];
get_container('input[name^="email_"]').hide();
get_container('select[name^="email_region"]').hide();
Expand All @@ -24,10 +24,8 @@
$.each(smtp, function(index, name) {
get_container('input[name="'+name+'"]').show();
});
break;
case 'sendmail' :
get_container('input[name^="email_address"]').show();
get_container('input[name^="email_sendmail"]').show();
break;
case 'ses':
Expand All @@ -42,10 +40,9 @@
case 'mandrill':
get_container('input[name^="email_secret"]').show();
break;
default :
get_container('input[name^="email_address"]').show();
break;
}
get_container('input[name^="email_address"]').show();
});
// bind onChange event to publish an event.
Expand Down

0 comments on commit 8bc7228

Please sign in to comment.