mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-18 19:48:53 +00:00
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:
@@ -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.
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -47,5 +47,6 @@
|
||||
/></span
|
||||
></var:if>
|
||||
</var:foreach>
|
||||
<img id="progressIndicator" rsrc:src="busy.gif" />
|
||||
</div>
|
||||
</var:if>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user