make voip line status a cross when pull down menu changes
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 10 Feb 2010 04:58:16 +0000 (04:58 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 10 Feb 2010 04:58:16 +0000 (04:58 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@149 01035d8c-6547-0410-b346-abe4f91aad63

mini-asterisk-gui/cgi-bin/voiplines.js
mini-asterisk-gui/cgi-bin/voiplines.pl

index 66e62e8fab037d6bc85bc62996656248a707d5cb..91a6c832b8baf454e43600d815488fa7b610768e 100644 (file)
@@ -4,4 +4,5 @@ function changeProvider() {
        $('pass').value = passwords[provider];
        $('host').value = hosts[provider];
         $('comment').innerHTML = comments[provider];
+        $('status').innerHTML = '<img src="cross.png" alt=\"Not OK\" />';
 }
index ed556513686fcfc21e01f3938bd9e5693161f700..96166c65d668ee2d9d5c9b16fc99a921be3bb029 100644 (file)
@@ -133,7 +133,7 @@ if ($voip{$stanza_current} eq "Registered") {
 else {
     $icon = "<img src=\"cross.png\" alt=\"Not OK\" />";
 }
-print "<tr $tt_status><td>Voip Line Status:</td><td>$icon</td></tr>\n";
+print "<tr $tt_status><td>Voip Line Status:</td><td><div id=\"status\" >$icon</div></td></tr>\n";
 
 print "<tr><td>&nbsp</td></tr>\n";
 print "<tr><td colspan=\"2\"><div id=\"comment\">$comment{$provider_current}</div></td></tr>\n";