pari: trunk r306 - /trunk/config/
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Tue Jan 30 19:05:55 MST 2007
Author: pari
Date: Tue Jan 30 20:05:54 2007
New Revision: 306
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=306
Log:
Fix for '0008749: Inactivity TimeOut => panel opens blank frame' - Now on each click on a panel a ping request is made and cross checked for a valid session
Modified:
trunk/config/cfgadvanced.html
trunk/config/cfgappliance.html
trunk/config/cfgbasic.html
Modified: trunk/config/cfgadvanced.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgadvanced.html?view=diff&rev=306&r1=305&r2=306
==============================================================================
--- trunk/config/cfgadvanced.html (original)
+++ trunk/config/cfgadvanced.html Tue Jan 30 20:05:54 2007
@@ -143,8 +143,23 @@
function finishfade(page) { $('mainscreen').style.display = "none"; }
function setstatus(status) { $('status').innerHTML = copyright + status; }
function showmainscreen(page) {
- if (started)
- $('mainscreen').src = page.titleBar.id + ".html";
+ if (started) {
+ var opt = {
+ method: 'get',
+ asynchronous: true,
+ onComplete: function (originalRequest){
+ if ( originalRequest.responseText.match("Error") ) {
+ window.location.href=window.location.href;
+ return ;
+ }
+ if ( originalRequest.responseText.match("Pong") ) {
+ $('mainscreen').src = page.titleBar.id + ".html";
+ }
+ }
+ };
+ opt.parameters="action=ping" ;
+ var tmp = new Ajax.Request("../../rawman" , opt);
+ }
}
function fademainscreen(page, newpage) {
Modified: trunk/config/cfgappliance.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgappliance.html?view=diff&rev=306&r1=305&r2=306
==============================================================================
--- trunk/config/cfgappliance.html (original)
+++ trunk/config/cfgappliance.html Tue Jan 30 20:05:54 2007
@@ -134,8 +134,23 @@
function finishfade(page) { $('mainscreen').style.display = "none"; }
function setstatus(status) { $('status').innerHTML = copyright + status; }
function showmainscreen(page) {
- if (started)
- $('mainscreen').src = page.titleBar.id + ".html";
+ if (started){
+ var opt = {
+ method: 'get',
+ asynchronous: true,
+ onComplete: function (originalRequest){
+ if ( originalRequest.responseText.match("Error") ) {
+ window.location.href=window.location.href;
+ return ;
+ }
+ if ( originalRequest.responseText.match("Pong") ) {
+ $('mainscreen').src = page.titleBar.id + ".html";
+ }
+ }
+ };
+ opt.parameters="action=ping" ;
+ var tmp = new Ajax.Request("../../rawman" , opt);
+ }
}
function fademainscreen(page, newpage) {
Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?view=diff&rev=306&r1=305&r2=306
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Tue Jan 30 20:05:54 2007
@@ -137,9 +137,27 @@
function finishfade(page) { $('mainscreen').style.display = "none"; }
function setstatus(status) { $('status').innerHTML = copyright + status; }
function showmainscreen(page) {
- if (started)
- $('mainscreen').src = page.titleBar.id + ".html";
- }
+ if (started) {
+ var opt = {
+ method: 'get',
+ asynchronous: true,
+ onComplete: function (originalRequest){
+ if ( originalRequest.responseText.match("Error") ) {
+ window.location.href=window.location.href;
+ return ;
+ }
+ if ( originalRequest.responseText.match("Pong") ) {
+ $('mainscreen').src = page.titleBar.id + ".html";
+ }
+ }
+ };
+ opt.parameters="action=ping" ;
+ var tmp = new Ajax.Request("../../rawman" , opt);
+ //$('mainscreen').src = page.titleBar.id + ".html";
+ }
+ }
+
+
function fademainscreen(page, newpage) {
// Confirm Discard Changes goes here
More information about the asterisk-gui-commits
mailing list