pari: trunk r346 - in /trunk/config: localexts.html scripts/astman.js

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu Feb 15 20:25:26 MST 2007


Author: pari
Date: Thu Feb 15 21:25:25 2007
New Revision: 346

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=346
Log:
option to reset changes

Modified:
    trunk/config/localexts.html
    trunk/config/scripts/astman.js

Modified: trunk/config/localexts.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/localexts.html?view=diff&rev=346&r1=345&r2=346
==============================================================================
--- trunk/config/localexts.html (original)
+++ trunk/config/localexts.html Thu Feb 15 21:25:25 2007
@@ -26,7 +26,7 @@
 <link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
 <script>
 var usercallbacks = new Object;
-var fieldnames = new Array('status', 'save','userbase','localextenlength','allow_aliasextns','vmsecret','hasvoicemail','hasdirectory','hassip','hasiax','hasmanager','callwaiting','threewaycalling','hasagent');
+var fieldnames = new Array('status', 'save','userbase','localextenlength','allow_aliasextns','vmsecret','hasvoicemail','hasdirectory','hassip','hasiax','hasmanager','callwaiting','threewaycalling','hasagent','cancel');
 var widgets = new Array;
 var focus_fields = new Array('localextenlength','userbase','vmsecret');
 
@@ -158,6 +158,7 @@
 					<center>
 							<div style="height:15px" id='status'></div><BR>
 							<input type=button id="save" value="Save">
+							&nbsp;&nbsp;<input type=button id="cancel" value="Cancel">
 					</center>
 			</td>
 	</tr>

Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=346&r1=345&r2=346
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Thu Feb 15 21:25:25 2007
@@ -1494,7 +1494,7 @@
 							return true;
 						}
 						widgets[x].onkeyup = function(event) {
-							if (event.keyCode ==9 || event.keyCode ==8 ){return true;}
+							if (event.keyCode ==9){return true;}
 							pattern = this.getAttribute('pattern');
 							if (pattern && check_pattern(pattern, this.oldvalue) && !check_pattern(pattern, this.value)) {
 									this.value = this.oldvalue;



More information about the asterisk-gui-commits mailing list