// request is directed to current location
//
JsHttpRequest.request= function(trigger, form) {
+ var mark = document.getElementById('ajaxmark');
+ if(mark) mark.style.visibility = 'visible';
if (trigger.tagName=='A') {
var content = {};
var upload = 0;
// Write errors to the debug div.
document.getElementById('msgbox').innerHTML = errors;
+ var mark = document.getElementById('ajaxmark');
+ if(mark) mark.style.visibility = 'hidden';
Behaviour.apply();
if (errors.length>0)
echo "<table class=logoutBar>";
echo "<tr><td class=headingtext3>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
+ $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
+ echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;'></td>";
echo " <td class='logoutBarRight'><a href='$path_to_root/admin/display_prefs.php?'>" . _("Preferences") . "</a> \n";
echo " <a href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a> \n";
echo "<table class=logoutBar>";
echo "<tr><td class=headingtext3>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
+ $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
+ echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;'></td>";
echo " <td class='logoutBarRight'><a href='$path_to_root/admin/display_prefs.php?'>" . _("Preferences") . "</a> \n";
echo " <a href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a> \n";
echo "<table class=logoutBar>";
echo "<tr><td class=headingtext3>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
-
+ $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
+ echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;'></td>";
echo " <td class='logoutBarRight'><a href='$path_to_root/admin/display_prefs.php?'>" . _("Preferences") . "</a> \n";
echo " <a href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a> \n";