From 620df024f3d8960a89eb4ed71d3ea61e2b9aa3db Mon Sep 17 00:00:00 2001 From: quentusrex <quentusrex@ispconfig3> Date: Thu, 30 Oct 2008 13:59:40 -0400 Subject: [PATCH] Now a client can view e-mail filters created by admin, but the client can't edit them. The client can submit a change, but it isn't input in the database, nor is the client told that the changes aren't made. --- interface/web/js/scrigo.js | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/interface/web/js/scrigo.js b/interface/web/js/scrigo.js index 3fde066..1b51dd0 100644 --- a/interface/web/js/scrigo.js +++ b/interface/web/js/scrigo.js @@ -6,7 +6,7 @@ document.getElementById('pageContent').innerHTML = o.responseText; }, failure: function(o) { - alert('Ajax Request was not successful.'); + alert('Ajax Request was not successful.'+pagename); } } @@ -202,6 +202,7 @@ var pageContentObject = YAHOO.util.Connect.asyncRequest('GET', 'content.php?s_mod=login&s_pg=index', pageContentCallback); loadMenus(); + keepalive(); } @@ -262,4 +263,18 @@ var pageContentObject2 = YAHOO.util.Connect.asyncRequest('GET', pagename, itemContentCallback); +} + +function keepalive() { + var pageContentCallbackKeepalive = { + success: function(o) { + setTimeout( keepalive, 1000000 ); + }, + failure: function(o) { + alert('Sorry. There was an error.'); + } + } + + var pageContentObject3 = YAHOO.util.Connect.asyncRequest('GET', 'keepalive.php', pageContentCallbackKeepalive); + //setTimeout( keepalive, 1000000 ); } \ No newline at end of file -- Gitblit v1.9.1