Monotone-Parent: e480189a8470ef74ff56185088d5a0ee3e0a66ef

Monotone-Revision: f89606284edb167179a499cd095ed71483dc5e1b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-11-15T22:52:41
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-11-15 22:52:41 +00:00
parent 7dda091069
commit 7f4cf18092
5 changed files with 32 additions and 5 deletions

View File

@@ -1,5 +1,9 @@
2006-11-15 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/generic.js: the progress indicator is on
when loading the page so we turn it off, and we turn it back on
whenever we switch to another module...
* UI/WebServerResources/SchedulerUI.js: make sure the day view
synchronization mechanism works everywhere.

View File

@@ -59,7 +59,7 @@
><var:if condition="context.isUIxDebugEnabled"
><div id="logConsole"><!-- space --></div></var:if>
<div class="linkbanner">
<div id="linkBanner" class="linkbanner">
<a var:href="relativeHomePath"
><var:string label:value="Home" /></a> |
<a var:href="relativeCalendarPath"

View File

@@ -47,5 +47,6 @@
/></span
></var:if>
</var:foreach>
<img id="progressIndicator" rsrc:src="busy.gif" />
</div>
</var:if>

View File

@@ -28,6 +28,11 @@ TABLE, DIV, IMG
margin: 0px;
padding: 0px; }
IMG#progressIndicator
{ position: absolute;
top: 2.5em;
right: 1em; }
DIV.pageContent
{ /* position: absolute;
background: #ffa;

View File

@@ -224,12 +224,9 @@ function checkAjaxRequestsState() {
&& !document.busyAnim) {
var anim = document.createElement("img");
document.busyAnim = anim;
anim.id = "progressIndicator";
anim.src = ResourcesURL + "/busy.gif";
anim.style.position = "absolute;";
anim.style.top = "2.5em;";
anim.style.right = "1em;";
anim.style.visibility = "hidden;";
anim.style.zindex = "1;";
toolbar.appendChild(anim);
anim.style.visibility = "visible;";
}
@@ -941,6 +938,10 @@ var onLoadHandler = {
initTabs();
configureDragHandles();
configureSortableTableHeaders();
configureLinkBanner();
var progressImage = $("progressIndicator");
if (progressImage)
progressImage.parentNode.removeChild(progressImage);
}
}
@@ -956,6 +957,22 @@ function configureSortableTableHeaders() {
}
}
function onLinkBannerClick() {
activeAjaxRequests++;
checkAjaxRequestsState();
}
function configureLinkBanner() {
var linkBanner = $("linkBanner");
if (linkBanner) {
var anchors = linkBanner.childNodesWithTag("a");
for (var i = 0; i < anchors.length; i++) {
anchors[i].addEventListener("mousedown", listRowMouseDownHandler, false);
anchors[i].addEventListener("click", onLinkBannerClick, false);
}
}
}
window.addEventListener("load", onLoadHandler, false);
/* stubs */