👁 查看:postman_smtp2go.js
路径:/home/forge/kingkrunch.com/wp/wp-content/plugins/post-smtp/Postman/Postman-Mail/postman_smtp2go.js
大小:901 B · 修改:2026-09-25 00:42:21 · 权限:0644 · 可写
jQuery( document ).ready( function( $ ) {
	enablePasswordDisplayOnEntry( 'smtp2go_api_key', 'toggleSmtp2goApiKey' );

	var PostmanSmtp2go = function() {

	}

	PostmanSmtp2go.prototype.handleTransportChange = function( transportName ) {
		console.log( transportName );
		if ( transportName == 'smtp2go_api' ) {
			hide( 'div.transport_setting' );
			hide( 'div.authentication_setting' );
			show( 'div#smtp2go_settings' );
		}
	}

	PostmanSmtp2go.prototype.handleConfigurationResponse = function( response ) {
		var transportName = response.configuration.transport_type;
		if ( transportName == 'smtp2go_api' ) {
			show( 'section.wizard_smtp2go' );
		} else {
			hide( 'section.wizard_smtp2go' );
		}
	}

	var transport = new PostmanSmtp2go();
	transports.push( transport );

	var transportName = jQuery( 'select#input_transport_type' ).val();
	transport.handleTransportChange( transportName );
} );