pari: trunk r1006 - /trunk/config/cfgbasic.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Wed May 30 17:50:34 MST 2007
Author: pari
Date: Wed May 30 19:50:33 2007
New Revision: 1006
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1006
Log:
OnWindowResize adjust to screen size
Modified:
trunk/config/cfgbasic.html
Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?view=diff&rev=1006&r1=1005&r2=1006
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Wed May 30 19:50:33 2007
@@ -30,19 +30,39 @@
var eventeater = new Object;
var loggedon = -1;
var accordion;
-var copyright = "Copyright ©2006-2007 Digium, Inc. All Rights Reserved. ";
var tooltip_default = "Move the mouse over to a field to see tooltips";
var asterisk_guitools_inextconf = 0;
eventeater.pingstatus = false;
var keepPinging;
+
+function fit_toScreen(){
+ var t = window.innerHeight;
+ var c =_$('configpanel');
+ c.WIH = t;
+ _$('mainscreen').style.height = (t - 70);
+ _$('TOP_MAINTABLE').rows[1].cells[0].height = (t - 70) ;
+ var pnameheight = 22;
+ var panels = returnpanels();
+ var pheight = (( t - 70) - (pnameheight*panels.length) ) ;
+ c.pheight = pheight;
+
+ if( c.childNodes.length ){
+ var s;
+ for( var r=0; r < panels.length; r++ ){
+ s = panels[r].page.split(".html")[0];
+ if( _$(s+"_U").style.display == "" ){
+ _$(s+"_U").style.height = pheight + "px";
+ }
+ }
+ }
+}
+
function createpanels(){
var t,u,v;
var a = _$('configpanel');
var pnameheight = 22;
var panels = returnpanels();
- var pheight = ((window.innerHeight - 70) - (pnameheight*panels.length) ) ;
- a.pheight = pheight;
var this_id ;
for( var r=0; r < panels.length; r++ ){
this_id = panels[r].page.split(".html")[0];
@@ -174,8 +194,6 @@
if(!onoff){return;}
loggedon = 1;
var panels = returnpanels();
- var pnameheight = 22;
- var pheight = ((window.innerHeight - 70) - (pnameheight*panels.length) ) ;
for( var r=0; r < panels.length; r++ ){
t = panels[r].page.split(".html")[0];
_$( t + "_U" ).style.height = "1px";
@@ -191,8 +209,6 @@
_$('mainscreen').style.display = '';
}
-function setstatus(status) { _$('status').innerHTML = copyright + status; }
-
function show_Acctooltip(tip){
if( loggedon != 1){ return; }
@@ -201,8 +217,8 @@
}
function registerajax() {
- top._$('mainscreen').style.height = (window.innerHeight - 70);
- _$('TOP_MAINTABLE').rows[1].cells[0].height = (window.innerHeight) - 70;
+ fit_toScreen();
+ add_event( window , 'resize', fit_toScreen );
pao();
astmanEngine = new Astman();
astmanEngine.setURL(asterisk_rawmanPath );
More information about the asterisk-gui-commits
mailing list