pari: trunk r402 - in /trunk/config: numberplan.html scripts/astman.js

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Mar 7 15:53:27 MST 2007


Author: pari
Date: Wed Mar  7 16:53:26 2007
New Revision: 402

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=402
Log:
[1]: select boxes are defaulting to  first element when the value is 'empty or invalid (no longer exits)'. [2] in Calling Rules new numberplan is being built on numberplan1 - instead build on whatever available

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

Modified: trunk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/numberplan.html?view=diff&rev=402&r1=401&r2=402
==============================================================================
--- trunk/config/numberplan.html (original)
+++ trunk/config/numberplan.html Wed Mar  7 16:53:26 2007
@@ -498,7 +498,7 @@
 				break;
 			c++ ;
 	}
-	gen = $('extensions').stored_config.catbyname['numberplan-custom-1'];
+	gen = $('extensions').stored_config.catbyname[$('extensions').value];
 	temp = objcopy(gen);
 	temp.name = "numberplan-custom-" + c ;
 	temp.fieldbyname['plancomment'] = "DialPlan" + c;

Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=402&r1=401&r2=402
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Wed Mar  7 16:53:26 2007
@@ -1571,7 +1571,7 @@
 						}
 					}
 				} else {
-					widgets[x].selectedIndex = 0;
+					widgets[x].selectedIndex = -1;
 					widgets[x].value = thevalue;
 				}
 				



More information about the asterisk-gui-commits mailing list