pari: branch asterisknow r364 - /branches/asterisknow/config/users.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Mon Feb 19 11:36:35 MST 2007


Author: pari
Date: Mon Feb 19 12:36:34 2007
New Revision: 364

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=364
Log:
fixes for buynow button

Modified:
    branches/asterisknow/config/users.html

Modified: branches/asterisknow/config/users.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/users.html?view=diff&rev=364&r1=363&r2=364
==============================================================================
--- branches/asterisknow/config/users.html (original)
+++ branches/asterisknow/config/users.html Mon Feb 19 12:36:34 2007
@@ -42,13 +42,12 @@
 	var userinfowidgets  = new Array();
 	var userinfo_callbacks = new Object;
 	 userinfo_callbacks.format = function(t){
-		if ((t.name != 'MyInfo'))
+		if ((t.name != 'Myinfo'))
                 	return null;
         return t.name;
       }
       userinfo_callbacks.loaded = function(){
 			$('userinfo').selectitem(0);
-			$('buynowform').style.display = "";
 		}
 
 
@@ -67,16 +66,12 @@
 		parent.loadscreen(this);
 		parent.$('buynow_div').innerHTML = "Need a phone?  Click on the BuyNow button to purchase a phone directly from the Asterisk Configuration GUI.<BR/><BR/><input type=\"button\" id=\"buynow_button\" value=\"BuyNow\">";
 
-		var blah = parent.astmanEngine.config2list("contactinfo.conf", $('userinfo'), userinfowidgets, userinfo_callbacks);
-                for (var x in fieldnames_buynow) {
+                for(var x=0;x< fieldnames_buynow.length;x++){
 			userinfowidgets[fieldnames_buynow[x]] = $(fieldnames_buynow[x]);
                 }
+		parent.astmanEngine.config2list("contactinfo.conf", $('userinfo'), userinfowidgets, userinfo_callbacks);
 
 		parent.$('buynow_button').onclick = function(){	 
-			// read the user info
-			for (var x in fieldnames_buynow) {
-				userinfowidgets[fieldnames_buynow[x]] = $(fieldnames_buynow[x]);
-                        }
 			win=window.open('','myWin');
 			document.buynow_form.target='myWin';
 			document.buynow_form.submit();
@@ -426,4 +421,4 @@
                                         <input type="hidden" id="cust_zip" name="cust_zip">
                                         <input type="hidden" id="cust_country" name="cust_country">
 </form>
-</body>
+</body>



More information about the asterisk-gui-commits mailing list