pari: trunk r463 - /trunk/config/users.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu Mar 22 09:11:29 MST 2007


Author: pari
Date: Thu Mar 22 11:11:28 2007
New Revision: 463

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=463
Log:
fix: registersip, registeriax not being updated when a new user is created with default sip/iax enabled

Modified:
    trunk/config/users.html

Modified: trunk/config/users.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/users.html?view=diff&rev=463&r1=462&r2=463
==============================================================================
--- trunk/config/users.html (original)
+++ trunk/config/users.html Thu Mar 22 11:11:28 2007
@@ -160,7 +160,8 @@
 			}
 		}
 	}
-
+	_$('registeriax').checked =_$('hasiax').checked ;
+	_$('registersip').checked =_$('hassip').checked ;
 	return true;
 }
 
@@ -283,16 +284,9 @@
 		widgets[focus_fields[x]].onfocus = function(){this.className = 'input8_hilight';}
 		widgets[focus_fields[x]].onblur = function(){this.className = 'input8';}
 	}
-	add_event( _$('hasiax'), 'change' , updateregistersipiax ) ;
-	add_event( _$('hassip'), 'change' , updateregistersipiax ) ;
-
 	parent.astmanEngine.config2list("zapscan.conf", _$('zapchan'), new Array(), phonecallbacks);
 }
 
-function updateregistersipiax(){
-	_$('registeriax').checked =_$('hasiax').checked ;
-	_$('registersip').checked =_$('hassip').checked ;
-}
 
 function free_mem(){
 	if( navigator.userAgent.indexOf("MSIE") == -1 ){ return true; }
@@ -333,7 +327,7 @@
 				<span id="noanaloglines" style="display:none"><I>&nbsp;No Analog lines detected.</I></span></td></tr>
 				<tr onmouseover="show_tooltip('en', 'users', 6);"><td class="field_text">Dial Plan:</td><td><select size='1' id='context' style='width:120px' class="input8"></select></td></tr>
 				<tr><td colspan='2' align='center'><div style="height:15px" id='status'></div></td></tr>
-				<tr><td colspan='2' align='center'><input type='hidden' id='mailbox'><input type='hidden' id='group'><input type='hidden' id='registersip'><input type='hidden' id='registeriax'></td></tr>
+				<tr><td colspan='2' align='center'><input type='hidden' id='mailbox'><input type='hidden' id='group'><input type='checkbox' id='registersip' style="display:none"><input type='checkbox' id='registeriax' style="display:none"></td></tr>
 				</table>
 			</td>
 			</tr>



More information about the asterisk-gui-commits mailing list