From e9e7a4137fa028030cbd4480c37774b05db459c5 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 2 Dec 2011 18:44:38 +0000 Subject: [PATCH] fixed IE problem (3446037) --- .../3rdParty/pla/htdocs/js/ajax_functions.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lam/templates/3rdParty/pla/htdocs/js/ajax_functions.js b/lam/templates/3rdParty/pla/htdocs/js/ajax_functions.js index 1a09d84a..4a0b7c4f 100644 --- a/lam/templates/3rdParty/pla/htdocs/js/ajax_functions.js +++ b/lam/templates/3rdParty/pla/htdocs/js/ajax_functions.js @@ -12,29 +12,32 @@ var http_request_error_callback = ''; function ajSUBMIT(div,obj,display) { var pageDiv = getDiv(div); + window.scrollTo(0,0); + + makeHttpRequest('cmd.php',getParameters(obj.parentNode)+'meth=ajax','POST','alertAJ','cancelAJ',div); + if (pageDiv) includeHTML(pageDiv,'
'+display+'...'); else return true; - makeHttpRequest('cmd.php',getParameters(obj.parentNode)+'meth=ajax','POST','alertAJ','cancelAJ',div); - return false; } function ajDISPLAY(div,urlParameters,display,ns) { var pageDiv = getDiv(div); - if (!ns) { + + if (! ns) window.scrollTo(0,0); - } + + makeHttpRequest('cmd.php',urlParameters+'&meth=ajax','GET','alertAJ','cancelAJ',div); + if (pageDiv) includeHTML(pageDiv,'
'+display+'...'); else return true; - makeHttpRequest('cmd.php',urlParameters+'&meth=ajax','GET','alertAJ','cancelAJ',div); - return false; }