pari: trunk r146 - /trunk/config/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Mon Dec 4 10:36:22 MST 2006


Author: pari
Date: Mon Dec  4 11:36:22 2006
New Revision: 146

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=146
Log:
workaround for 'Invalid/unknown command' when the user tries to login if he is alredy logged in

Modified:
    trunk/config/home.html
    trunk/config/networking.html
    trunk/config/numberplan.html
    trunk/config/queues.html
    trunk/config/voicemail.html

Modified: trunk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/home.html?view=diff&rev=146&r1=145&r2=146
==============================================================================
--- trunk/config/home.html (original)
+++ trunk/config/home.html Mon Dec  4 11:36:22 2006
@@ -73,9 +73,10 @@
 	demo.logins = function(msgs) {
 		$('statusbar').innerHTML = msgs[0].headers['message'];
 		resp = msgs[0].headers['response'];
-		if (resp == "Success")
+		if (resp == "Success" || msgs[0].headers['message'] == "Invalid/unknown command" ){
+			$('statusbar').innerHTML = "<img src='images/tick.gif'><i>Connected!</i>";
 			loggedOn();
-		else
+		}else
 			loggedOff();
 	};
 	

Modified: trunk/config/networking.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/networking.html?view=diff&rev=146&r1=145&r2=146
==============================================================================
--- trunk/config/networking.html (original)
+++ trunk/config/networking.html Mon Dec  4 11:36:22 2006
@@ -204,9 +204,9 @@
 				</table>
 			</td>
 			</tr>
-			<tr><td><img id="split" onClick="togglefeatures()" src="images/split-v.png"></td></tr>
+			<tr><td><img id="split" onClick="togglefeatures()" src="images/split-v.gif"></td></tr>
 			<tr><td>
-				<div style="background-image:url(images/slice-v.png)" id='advancedw'>
+				<div style="background-image:url(images/slice-v.gif)" id='advancedw'>
 				<table id='advancedi' align='center'>
 				<tr><td></td><td width='50' height=5></td><td></td></tr>
 				<tr><td>Local Subnet</td><td><input type='text' size='16' id='SUBBLOCK'></td></tr>
@@ -218,7 +218,7 @@
 				</div>
 			</td></tr>
 			<tr><td>
-				<img onClick="togglefeatures()" src="images/adv-v.png">
+				<img onClick="togglefeatures()" src="images/adv-v.gif">
 			</td>
 			</tr>
 		</table>

Modified: trunk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/numberplan.html?view=diff&rev=146&r1=145&r2=146
==============================================================================
--- trunk/config/numberplan.html (original)
+++ trunk/config/numberplan.html Mon Dec  4 11:36:22 2006
@@ -525,9 +525,9 @@
 
 							<tr><td colspan='2' height=180 valign="top">
 									<table cellpadding=0 cellspacing=0 border=0>
-									<tr><td style="cursor: pointer; cursor: hand;"><img id="split" onClick="togglefeatures()" src="images/split-v.png"></td></tr>
+									<tr><td style="cursor: pointer; cursor: hand;"><img id="split" onClick="togglefeatures()" src="images/split-v.gif"></td></tr>
 									<tr><td>
-										<div style="background-image:url(images/slice-v.png)" id='advancedw'>
+										<div style="background-image:url(images/slice-v.gif)" id='advancedw'>
 										<table id='advancedi' align='center'><tr><td>
 										<tr><td class="field_text">Plan Ident</td><td><input size='14' type='text' id='planident' class="input8"></td></tr>
 										<tr><td class="field_text">Plan Comment</td><td><input size='14' type='text' id='comment' disabled='yes' class="input8"></td></tr>
@@ -539,7 +539,7 @@
 										</div>
 									</td></tr>
 									<tr><td style="cursor: pointer; cursor: hand;">
-											<img onClick="togglefeatures()" src="images/adv-v.png">
+											<img onClick="togglefeatures()" src="images/adv-v.gif">
 											</td>
 									</tr>
 									</table>

Modified: trunk/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/queues.html?view=diff&rev=146&r1=145&r2=146
==============================================================================
--- trunk/config/queues.html (original)
+++ trunk/config/queues.html Mon Dec  4 11:36:22 2006
@@ -441,8 +441,8 @@
 															</table>
 																</td>
 								</tr>
-								<tr onmouseover="show_tooltip('en', 'queues', 4);"><td style="cursor: pointer; cursor: hand;"><img id="split" onClick="togglefeatures()" src="images/split-v.png"></td></tr>
-								<tr><td><div style="background-image:url(images/slice-v.png)" id='advancedw'>
+								<tr onmouseover="show_tooltip('en', 'queues', 4);"><td style="cursor: pointer; cursor: hand;"><img id="split" onClick="togglefeatures()" src="images/split-v.gif"></td></tr>
+								<tr><td><div style="background-image:url(images/slice-v.gif)" id='advancedw'>
 																<table id='advancedi' align='center'>
 																		<tr onmouseover="show_tooltip('en', 'queues', 5);" ><td class="field_text">TimeOut:</td><td>&nbsp;<input size='2' id='timeout'  pattern='^\d*$' class="input8"></td></tr>
 																		<tr onmouseover="show_tooltip('en', 'queues', 6);" ><td class="field_text">Wrapup Time:</td><td>&nbsp;<input size='2' id='wrapuptime' pattern='^\d*$' class="input8"></td></tr>
@@ -456,7 +456,7 @@
 													</div>
 										</td>
 								</tr>
-								<tr onmouseover="show_tooltip('en', 'queues', 4);"><td style="cursor: pointer; cursor: hand;"><img onClick="togglefeatures()" src="images/adv-v.png"></td></tr>
+								<tr onmouseover="show_tooltip('en', 'queues', 4);"><td style="cursor: pointer; cursor: hand;"><img onClick="togglefeatures()" src="images/adv-v.gif"></td></tr>
 							</table>
 					</div>
 			</td>

Modified: trunk/config/voicemail.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/voicemail.html?view=diff&rev=146&r1=145&r2=146
==============================================================================
--- trunk/config/voicemail.html (original)
+++ trunk/config/voicemail.html Mon Dec  4 11:36:22 2006
@@ -316,9 +316,9 @@
 																			</table>
 																		</td>
 											</tr>
-											<tr onmouseover="show_tooltip('en', 'voicemail', 8);" ><td style="cursor: pointer; cursor: hand;"><img id="split" onClick="togglefeatures()" src="images/split-v.png"></td></tr>
+											<tr onmouseover="show_tooltip('en', 'voicemail', 8);" ><td style="cursor: pointer; cursor: hand;"><img id="split" onClick="togglefeatures()" src="images/split-v.gif"></td></tr>
 											<tr><td>
-														<div style="background-image:url(images/slice-v.png)" id='advancedw'>
+														<div style="background-image:url(images/slice-v.gif)" id='advancedw'>
 																<table id='advancedi' align='center'>
 																			<tr><td></td><td width='50'></td><td></td></tr>
 																			<tr onmouseover="show_tooltip('en', 'voicemail', 9);" ><td colspan='2' class="field_text" >Dial&nbsp;'0'&nbsp;for&nbsp;Operator:</td><td align='right'><input type='checkbox' id='operator'></td></tr>
@@ -338,7 +338,7 @@
 														</div>
 													</td>
 											</tr>
-											<tr onmouseover="show_tooltip('en', 'voicemail', 8);" ><td style="cursor: pointer; cursor: hand;"><img onClick="togglefeatures()" src="images/adv-v.png"></td></tr>
+											<tr onmouseover="show_tooltip('en', 'voicemail', 8);" ><td style="cursor: pointer; cursor: hand;"><img onClick="togglefeatures()" src="images/adv-v.gif"></td></tr>
 										</table>
 		</div>
 		</td>



More information about the asterisk-gui-commits mailing list