git-svn-id: https://svn.code.sf.net/p/freetel/code@999 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 17 Nov 2012 01:50:23 +0000 (01:50 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 17 Nov 2012 01:50:23 +0000 (01:50 +0000)
mini-asterisk-gui2/voiplines.js

index 7a5f13f3a7c3b1993375b5ab06cd901ecc6842b5..914f67505742858f583b50c399187eee7bcbbfea 100644 (file)
@@ -63,7 +63,7 @@ function initialisePage() {
        
        // sip info now loaded
 
-       if(siprego_line.indexOf(';') == 0) { 
+       if(siprego_line[0] == ';') { 
                // commented out mean no rego selected
                selection = "none";
                document.getElementById('user').value = "";