diff options
Diffstat (limited to 'Postman/Postman-Configuration/postman_wizard.js')
-rw-r--r-- | Postman/Postman-Configuration/postman_wizard.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Postman/Postman-Configuration/postman_wizard.js b/Postman/Postman-Configuration/postman_wizard.js index 097fd65..8e1a68c 100644 --- a/Postman/Postman-Configuration/postman_wizard.js +++ b/Postman/Postman-Configuration/postman_wizard.js @@ -492,6 +492,26 @@ function handleConfigurationResponse(response) { } } + + jQuery('select#input_notification_service').change(function() { + var selected = $( this ).val(); + + if ( selected == 'default' ) { + $('#slack_cred').fadeOut('fast'); + $('#pushover_cred').fadeOut('fast'); + } + + if ( selected == 'pushover' ) { + $('#slack_cred').fadeOut('fast'); + $('#pushover_cred').fadeIn(); + } + + if ( selected == 'slack' ) { + $('#pushover_cred').fadeOut('fast'); + $('#slack_cred').fadeIn(); + } + }); + // add an event on the user port override field jQuery('input.user_socket_override').change(function() { userOverrideMenu(); |