pari: branch 2.0 r4266 - in /branches/2.0/config: blank.html js/index.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Dec 2 17:57:57 CST 2008


Author: pari
Date: Tue Dec  2 17:57:56 2008
New Revision: 4266

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4266
Log:

 Add a blank.html to make sure that 'on GUI Reload' the mainscreen iframe 
 does not try to refresh what ever the page that was loaded.



Added:
    branches/2.0/config/blank.html
Modified:
    branches/2.0/config/js/index.js

Added: branches/2.0/config/blank.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/blank.html?view=auto&rev=4266
==============================================================================
    (empty)

Modified: branches/2.0/config/js/index.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/index.js?view=diff&rev=4266&r1=4265&r2=4266
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Tue Dec  2 17:57:56 2008
@@ -1027,6 +1027,9 @@
 		DOM_mainscreen.style.top = DOM_accordion_div.offsetTop ;
 		miscFunctions.resizeMainIframe();
 		window.onresize = miscFunctions.resizeMainIframe;
+		window.onunload = function (e) {
+			DOM_mainscreen.src = 'blank.html';
+		};
 		ASTGUI.Log.Debug('calling onLogInFunctions.checkifLoggedIn()');
 		onLogInFunctions.checkifLoggedIn();
 		if(sessionData.DEBUG_MODE){




More information about the asterisk-gui-commits mailing list