return http;
}
+function startAnimation(parent, nextNode) {
+ var anim = document.createElement("img");
+ anim = $(anim);
+ anim.id = "progressIndicator";
+ anim.src = ResourcesURL + "/busy.gif";
+ anim.setStyle({ visibility: "hidden" });
+ if (nextNode)
+ parent.insertBefore(anim, nextNode);
+ else
+ parent.appendChild(anim);
+ anim.setStyle({ visibility: "visible" });
+
+ return anim;
+}
+
function checkAjaxRequestsState() {
var toolbar = document.getElementById("toolbar");
if (toolbar) {
if (activeAjaxRequests > 0
&& !document.busyAnim) {
- var anim = document.createElement("img");
- anim = $(anim);
- document.busyAnim = anim;
- anim.id = "progressIndicator";
- anim.src = ResourcesURL + "/busy.gif";
- anim.setStyle({ visibility: "hidden" });
- toolbar.appendChild(anim);
- anim.setStyle({ visibility: "visible" });
+ document.busyAnim = startAnimation(toolbar);
}
else if (activeAjaxRequests == 0
&& document.busyAnim
}
function onLoadHandler(event) {
- loadPreferences();
+ if (!document.body.hasClassName("loginPage")) {
+ loadPreferences();
+ }
queryParameters = parseQueryParameters('' + window.location);
if (!$(document.body).hasClassName("popup")) {
initLogConsole();
var linkBanner = $("linkBanner");
if (linkBanner) {
var anchors = linkBanner.childNodesWithTag("a");
- for (var i = 0; i < 2; i++) {
+ for (var i = 1; i < 3; i++) {
Event.observe(anchors[i], "mousedown", listRowMouseDownHandler);
Event.observe(anchors[i], "click", onLinkBannerClick);
}
- Event.observe(anchors[3], "mousedown", listRowMouseDownHandler);
- Event.observe(anchors[3], "click", onPreferencesClick);
- if (anchors.length > 4)
- Event.observe(anchors[4], "click", toggleLogConsole);
+ Event.observe(anchors[4], "mousedown", listRowMouseDownHandler);
+ Event.observe(anchors[4], "click", onPreferencesClick);
+ if (anchors.length > 5)
+ Event.observe(anchors[5], "click", toggleLogConsole);
}
}