From 7f8e524f7d7dfd44bfadcc362fdfcfa383fcb7b9 Mon Sep 17 00:00:00 2001 From: horse69 Date: Sat, 27 Oct 2012 23:05:35 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/freetel/code@838 01035d8c-6547-0410-b346-abe4f91aad63 --- mini-asterisk-gui2/voiplines.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/mini-asterisk-gui2/voiplines.js b/mini-asterisk-gui2/voiplines.js index 99619ed8..73871a13 100644 --- a/mini-asterisk-gui2/voiplines.js +++ b/mini-asterisk-gui2/voiplines.js @@ -53,9 +53,20 @@ function changeProvider() { // fill the host and username fields based on selection -var selection = document.getElementById('provider').value; - - + var selection = document.getElementById('provider').value; + + if (selection == "none" ) { + // clear fields + } else if (selection == "SIPNAT" ) { + // fill sipnat + } else if (selection == "SIP" ) { + // fill sip + } else if (selection == "JAZMIN" ) { + // fill jazmin + } else { + // something weird happened + } + } -- 2.25.1