pari: branch asterisknow r2193 - /branches/asterisknow/config/cfgbasic.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Jan 23 18:36:48 CST 2008


Author: pari
Date: Wed Jan 23 18:36:48 2008
New Revision: 2193

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2193
Log:
Fix for Problem:
When you first come to the login page for the gui. It extends past the bottom of the page.
This i think is due to the amount of tabs are there once you are logged in. The login page 
should be taking attributes of the page when the tabs are present and I do not think it is doing that. 

 - reported by 'Sean Pimental' 

thanks Sean.



Modified:
    branches/asterisknow/config/cfgbasic.html

Change Statistics:
 0 files changed

Modified: branches/asterisknow/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/cfgbasic.html?view=diff&rev=2193&r1=2192&r2=2193
==============================================================================
--- branches/asterisknow/config/cfgbasic.html (original)
+++ branches/asterisknow/config/cfgbasic.html Wed Jan 23 18:36:48 2008
@@ -126,7 +126,7 @@
 		var s;
 		for( var r=0; r < panels.length; r++ ){
 			s = panels[r].page.split(".html")[0];
-			if( _$(s+"_U").style.display == "" ){
+			if( _$(s+"_U").style.visibility == "visible" ){
 				_$(s+"_U").style.height = pheight;
 			}
 		}
@@ -150,7 +150,7 @@
 
 		t = document.createElement("div");
 		t.className = "accordionTabTitleBar";
-		t.style.display = "none";
+		t.style.visibility = "hidden";
 		t.setAttribute('id', this_id );
 		t.height = a.pnameheight;
 		t.innerHTML = "<nobr><img style='vertical-align: middle;' src='images/accordion-icon.gif'><span style='margin-left: 0px; font-weight: bold;'>&nbsp;" + panels[r].caption + "</span></nobr>";
@@ -165,7 +165,7 @@
 		u.style.overflow = "hidden";
 		u.style.backgroundImage = "url(images/panel.png)";
 		u.style.height = "1px";
-		u.style.display = "none";
+		u.style.visibility = "hidden";
 		u.setAttribute('id', this_id+"_U" );
 		u.innerHTML =panels[r].desc; 
 
@@ -173,8 +173,8 @@
 		a.appendChild(u);
 	}
 
-	_$( "home" ).style.display = "";
-	_$( "home_U" ).style.display = "";
+	_$( "home" ).style.visibility = "visible";
+	_$( "home_U" ).style.visibility = "visible";
 	_$( "home_U" ).style.height = a.pheight;
 }
 
@@ -207,13 +207,13 @@
 	for( var r=0; r < panels.length; r++ ){
 		t = panels[r].page.split(".html")[0];
 		_$( t + "_U" ).style.height = "1px";
-		_$( t + "_U" ).style.display = "none";
+		_$( t + "_U" ).style.visibility = "hidden";
 	}
 	_$( s.id + "_U" ).style.height = _$('configpanel').pheight;
-	_$( s.id + "_U" ).style.display = "";
+	_$( s.id + "_U" ).style.visibility = "visible";
 
 	_$('AdvancedOptionsSelect').selectedIndex=-1;
-	_$('mainscreen').style.display = "none";
+	_$('mainscreen').style.visibility = "hidden";
 	_$('mainscreen').src = s.id + ".html";
 	_$('mainscreen').currentpage = s.id + ".html";
 }
@@ -290,16 +290,16 @@
 	for( var r=0; r < panels.length; r++ ){
 		t = panels[r].page.split(".html")[0];
 		_$( t + "_U" ).style.height = "1px";
-		_$( t + "_U" ).style.display = "none";
-		_$( t ).style.display = "";
-	}
-	_$("home").style.display = "";
+		_$( t + "_U" ).style.visibility = "hidden";
+		_$( t ).style.visibility = "visible";
+	}
+	_$("home").style.visibility = "visible";
 	_$("home_U").style.height = _$('configpanel').pheight;
-	_$("home_U").style.display = "";
+	_$("home_U").style.visibility = "visible";
 }
 
 function loadscreen(srcbody) {
-	_$('mainscreen').style.display = '';
+	_$('mainscreen').style.visibility = "visible";
 }
 
 
@@ -346,8 +346,8 @@
 }
 
 function reloadConfig(){
-	_$('reloadconfig').style.display = 'none'; 
-	window.setTimeout( function(){ _$('reloadconfig').style.display=""; }, asterisk_guifbt );
+	_$('reloadconfig').style.visibility = "hidden";
+	window.setTimeout( function(){ _$('reloadconfig').style.visibility = "visible"; }, asterisk_guifbt );
 	//gui_feedback("Running ztcfg ");
 	//astmanEngine.run_tool('ztcfg', function(t) { // run ztcfg
 		astmanEngine.cliCommand('reload', function(t){ gui_feedback("Restarted Asterisk !!",'blue'); 
@@ -375,7 +375,7 @@
 }
 
 function hide_advops(){
-	_$('AdvancedOptions').style.display='none';
+	_$('AdvancedOptions').style.visibility = "hidden";
 
 	if ( _$('mainscreen').contentWindow.flipadvbasic  ){
 		_$('mainscreen').contentWindow.flipadvbasic();
@@ -384,7 +384,7 @@
 }
 
 function goto_advancedoption(){ 
-	_$('mainscreen').style.display = "none";
+	_$('mainscreen').style.visibility = "hidden";
 	if( _$('AdvancedOptionsSelect').value == 'TOSETUP'){top.window.location.href = "./setup/install.html"; return;}
 
 	var t;
@@ -392,10 +392,10 @@
 	for( var r=0; r < panels.length; r++ ){
 		t = panels[r].page.split(".html")[0];
 		_$( t + "_U" ).style.height = "1px";
-		_$( t + "_U" ).style.display = "none";
+		_$( t + "_U" ).style.visibility = "hidden";
 	}
 	_$( "localexts_U" ).style.height = _$('configpanel').pheight;
-	_$( "localexts_U" ).style.display = "";
+	_$( "localexts_U" ).style.visibility = "visible";
 
 	_$('mainscreen').src = _$('AdvancedOptionsSelect').value ;
 }




More information about the asterisk-gui-commits mailing list