pari: trunk r267 - /trunk/config/
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Wed Jan 17 12:06:23 MST 2007
Author: pari
Date: Wed Jan 17 13:06:23 2007
New Revision: 267
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=267
Log:
Removing the onunload and onbeforeunload events as they are causing trouble while refreshing (F5)
Modified:
trunk/config/cfgadvanced.html
trunk/config/cfgappliance.html
trunk/config/cfgbasic.html
trunk/config/localexts.html
trunk/config/options.html
Modified: trunk/config/cfgadvanced.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgadvanced.html?view=diff&rev=267&r1=266&r2=267
==============================================================================
--- trunk/config/cfgadvanced.html (original)
+++ trunk/config/cfgadvanced.html Wed Jan 17 13:06:23 2007
@@ -159,22 +159,6 @@
}
function registerajax() {
- window.onbeforeunload = function(){
- if(loggedon == 1)
- return "Doing so will terminate your Asterisk GUI session";
- }
-
- window.onunload = function(){
- if(loggedon != 1) return true;
- var opt2 = {
- method: 'get',asynchronous: true,
- onSuccess: function() {setLoggedOn(0);loggedon == -1;},
- onFailure: function(t) {}
- };
- opt2.parameters ="action=logoff";
- var tmp2 = new Ajax.Request("../../rawman", opt2);
- }
-
var pnameheight = 22;
var pheight = (503 - (pnameheight*panels.length) ) ;
accordion = new Rico.Accordion( $('configpanel'), { panelHeight: pheight,onHideTab:fademainscreen,onShowTab:showmainscreen });
Modified: trunk/config/cfgappliance.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgappliance.html?view=diff&rev=267&r1=266&r2=267
==============================================================================
--- trunk/config/cfgappliance.html (original)
+++ trunk/config/cfgappliance.html Wed Jan 17 13:06:23 2007
@@ -150,22 +150,6 @@
}
function registerajax() {
- window.onbeforeunload = function(){
- if(loggedon == 1)
- return "Doing so will terminate your Asterisk GUI session";
- }
-
- window.onunload = function(){
- if(loggedon != 1) return true;
- var opt2 = {
- method: 'get',asynchronous: true,
- onSuccess: function() {setLoggedOn(0);loggedon == -1;},
- onFailure: function(t) {}
- };
- opt2.parameters ="action=logoff";
- var tmp2 = new Ajax.Request("../../rawman", opt2);
- }
-
var pnameheight = 22;
var pheight = (503 - (pnameheight*panels.length) ) ;
accordion = new Rico.Accordion( $('configpanel'), { panelHeight: pheight,onHideTab:fademainscreen,onShowTab:showmainscreen });
Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?view=diff&rev=267&r1=266&r2=267
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Wed Jan 17 13:06:23 2007
@@ -154,22 +154,6 @@
function registerajax() {
- window.onbeforeunload = function(){
- if(loggedon == 1)
- return "Doing so will terminate your Asterisk GUI session";
- }
-
- window.onunload = function(){
- if(loggedon != 1) return true;
- var opt2 = {
- method: 'get',asynchronous: true,
- onSuccess: function() {setLoggedOn(0);loggedon == -1;},
- onFailure: function(t) {}
- };
- opt2.parameters ="action=logoff";
- var tmp2 = new Ajax.Request("../../rawman", opt2);
- }
-
var pnameheight = 22;
var pheight = (503 - (pnameheight*panels.length) ) ;
accordion = new Rico.Accordion( $('configpanel'), { panelHeight: pheight,onHideTab:fademainscreen,onShowTab:showmainscreen });
Modified: trunk/config/localexts.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/localexts.html?view=diff&rev=267&r1=266&r2=267
==============================================================================
--- trunk/config/localexts.html (original)
+++ trunk/config/localexts.html Wed Jan 17 13:06:23 2007
@@ -30,8 +30,6 @@
var widgets = new Array;
function tosetup(){
- parent.window.onbeforeunload = function(){ }
- parent.window.onunload = function(){ }
parent.window.location.href = "./setup/install.html";
}
Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?view=diff&rev=267&r1=266&r2=267
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Wed Jan 17 13:06:23 2007
@@ -210,8 +210,6 @@
function tosetup(){
- parent.window.onbeforeunload = function(){ }
- parent.window.onunload = function(){ }
parent.window.location.href = "./setup/install.html";
}
More information about the asterisk-gui-commits
mailing list