pari: trunk r899 - in /trunk/config: cfgbasic.html scripts/astman.js

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue May 8 15:18:15 MST 2007


Author: pari
Date: Tue May  8 17:18:14 2007
New Revision: 899

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=899
Log:
Create Astman Object only when needed

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

Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?view=diff&rev=899&r1=898&r2=899
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Tue May  8 17:18:14 2007
@@ -195,6 +195,9 @@
 }
 
 function registerajax() {
+	astmanEngine = new Astman();
+	astmanEngine.setURL(asterisk_rawmanPath);
+
 	_$('mainscreen').src = "home.html" ;
 	Rico.Corner.round('tooltip_round', {compact:true});
 		// if you want google style feedback boxes :-)
@@ -221,7 +224,7 @@
 	started = 1;
 }
 
-astmanEngine.setURL(asterisk_rawmanPath );
+
 //astmanEngine.setEventCallback(eventeater.eventcb);
 
 function Logoff() {

Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=899&r1=898&r2=899
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Tue May  8 17:18:14 2007
@@ -1857,4 +1857,4 @@
 	}
 }
 
-astmanEngine = new Astman();
+



More information about the asterisk-gui-commits mailing list