freenetis-github/application/views/js/settings_email.php @ 8bb6c828
8baed187 | Michal Kliment | <?php
|
|
/**
|
|||
* Settings email javascript view.
|
|||
*/
|
|||
// IDE complementation
|
|||
if (FALSE): ?><script type="text/javascript"><?php endif
|
|||
?>
|
|||
var driver = $("#email_driver option:selected").val();
|
|||
if (driver != "smtp")
|
|||
{
|
|||
fe31be1a | Ondřej Fibich | $("#email_hostname,#email_port,#email_encryption,#email_username,#email_password").attr("disabled", true);
|
|
8baed187 | Michal Kliment | }
|
|
$("#email_driver").live("change", function()
|
|||
{
|
|||
var driver = $("#email_driver option:selected").val();
|
|||
if (driver != "smtp")
|
|||
fe31be1a | Ondřej Fibich | $("#email_hostname,#email_port,#email_encryption,#email_username,#email_password").attr("disabled", true);
|
|
8baed187 | Michal Kliment | else
|
|
fe31be1a | Ondřej Fibich | $("#email_hostname,#email_port,#email_encryption,#email_username,#email_password").removeAttr("disabled");
|
|
8baed187 | Michal Kliment | });
|
|