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

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue Jan 30 09:28:12 MST 2007


Author: pari
Date: Tue Jan 30 10:28:12 2007
New Revision: 301

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=301
Log:
When a panel is being loaded using back button, open corresponding Accordion panel, could get it working fine - but causing the current page to load twice - so commiting the code so that others any give it a shot or may be i'll work on it somepoint in future 

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=301&r1=300&r2=301
==============================================================================
--- trunk/config/users.html (original)
+++ trunk/config/users.html Tue Jan 30 10:28:12 2007
@@ -263,6 +263,17 @@
 		}
 	}
 	function localajaxinit() {
+		/*
+		// Automatically open the related panel - like when this page is called using a back button
+		// This is working .. but is causing the current page to load twice.
+		for( var v=0; v < parent.panels.length ; v++){	
+			if ( parent.panels[v].name == "incoming"){
+				parent.accordion.showTabByIndex(v,true);			
+				break;
+			}
+		}
+		*/
+
 		if(window.location.href.match("sortbynames") ){
 			sortbynames = true;
 			$('link_sortby').innerHTML = " <A href=\"users.html\">Sort By Extensions</A> ";



More information about the asterisk-gui-commits mailing list