Project

General

Profile

1
/**/
2
function toggle_wbmailer_auth( elm ) {
3
        if ( elm.checked == true ) {
4
            elm.checked = false;
5
            document.getElementById('row_wbmailer_smtp_username').style.display = 'none';
6
            document.getElementById('row_wbmailer_smtp_password').style.display = 'none';
7
        }
8
        else  {
9
            elm.checked = true;
10
            document.getElementById('row_wbmailer_smtp_username').style.display = 'block';
11
            document.getElementById('row_wbmailer_smtp_password').style.display = 'block';
12
        }
13
console.info(elm);
14
}
15

    
16
  domReady(function() {
17

    
18
    var smtpPort = document.getElementById("wbmailer_smtp_port");
19
    if ( smtpPort ){
20
        smtpPort.addEventListener("click", function() {
21
            toggle_wbmailer_secure( smtpPort );
22
        }, false);
23
    }
24

    
25
});
    (1-1/1)