Author: sshyrkov
Date: Thu Sep 27 19:07:09 2007
New Revision: 18702
URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D18702&repname=
=3Djahia
Log:
1) 'Work in progress' status refactored to grey out the dialog window and d=
isplay 'loading' image
2) JavaScript moved to separate file ('engines.js')
Added:
branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/javascript/engin=
es.js
Modified:
branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/addconta=
iner/addcontainer.jsp
branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/css/styl=
es.css
branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/engine.j=
sp
Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/ad=
dcontainer/addcontainer.jsp
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/webapp/jsp/jahia/engines/addcontainer/addcontainer.jsp&rev=
=3D18702&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/addconta=
iner/addcontainer.jsp (original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/addconta=
iner/addcontainer.jsp Thu Sep 27 19:07:09 2007
@@ -41,18 +41,7 @@
theScreen.equals("ctneditview_rights"));
request.setAttribute("showEditMenu",
Boolean.valueOf(showEditMenu));
%>
-<script type=3D"text/javascript">
-Event.observe(window, 'load', function() {
- if (saveContent && (typeof saveContent =3D=3D 'function')) {
- var oldSaveContent =3D saveContent;
- saveContent =3D function () {
- $('curtain').show();
- oldSaveContent();
- }
- }
-});
-</script>
-<div id=3D"curtain" style=3D"display: none;"><img src=3D"<jahia:serverHttp=
Path/>/jsp/jahia/engines/images/waiting_large.gif" alt=3D"Loading..." title=
=3D"Loading..."/></div>
+
<h3
<% if ("update_container".equals(jspSource)) { %>
class=3D"updateelement">
Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/cs=
s/styles.css
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/webapp/jsp/jahia/engines/css/styles.css&rev=3D18702&repnam=
e=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/css/styl=
es.css (original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/css/styl=
es.css Thu Sep 27 19:07:09 2007
@@ -128,25 +128,24 @@
padding-top: 4px;
}
=
-#curtain {
- position: absolute;
- left: 0px;
- top: 0px;
- width: 100%;
- height: 100%;
- background-color: white;
- opacity: 0.70;
+#workInProgressOverlay {
+ display:none;
+ position: absolute; top: 0; left: 0;
+ width: 100%; height: 100%;
+ z-index: 5019;
+ background-color:white;
+ -moz-opacity: 0.7;
+ opacity:.70;
filter: alpha(opacity=3D70);
- z-index: 1019;
}
-#curtain img {
+#workInProgressOverlay[id]{
+ position:fixed;
+}
+#workInProgressOverlay img {
position: absolute;
- top: 50%;
- left: 50%;
- width: 66px;
- height: 66px;
- margin-left: -33px;
- margin-top: -33px;
+ top: 50%; left: 50%;
+ width: 66px; height: 66px;
+ margin-left: -33px; margin-top: -33px;
}
/* ------------------------------------------------ */
/* TABLE STRUCT */
Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/en=
gine.jsp
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/webapp/jsp/jahia/engines/engine.jsp&rev=3D18702&repname=3D=
jahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/engine.j=
sp (original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/engine.j=
sp Thu Sep 27 19:07:09 2007
@@ -177,214 +177,27 @@
=
<script type=3D"text/javascript" src=3D"<%=3DURL%>../javascript/serverdate=
time.js"></script>
<script type=3D"text/javascript" src=3D"<%=3DURL%>../javascript/prototype/=
prototype-150-compressed.js"></script>
-<% if (request.getAttribute("org.jahia.engines.html.headers") !=3D null) {=
%>
-<%=3D (String) request.getAttribute("org.jahia.engines.html.headers") %>
-<% } %>
+<script type=3D"text/javascript" src=3D"<%=3DURL%>../javascript/engines.js=
"></script>
<script type=3D"text/javascript">
-
- function check() {
- // override this function if needed in subengine to perform form d=
ata check
- // before submit !!!
- return true;
- }
-
- function saveContent() {
- // used by Html editors
- // override this for preprocessing before for submission
- }
-
- var submittedCount =3D 0;
-
- function teleportCaptainFlam(what) {
- if (submittedCount =3D=3D 0) {
- submittedCount++;
- document.mainForm.submit();
- }
- }
-
- function handleLanguageChange(lang) {
- document.mainForm.screen.value =3D "<%=3DtheScreen%>";
- document.mainForm.engine_lang.value =3D lang;
- if (check()) {
- saveContent();
- teleportCaptainFlam(document.mainForm);
- }
- }
-
- function handleActionChange(what) {
- submittedCount++;
- saveContent();
- document.mainForm.screen.value =3D what;
- document.mainForm.submit();
- }
-
- function sendFormSave() {
- if (check() && submittedCount =3D=3D 0) {
- var button =3D document.getElementById("saveButton");
- if (button) button.innerHTML =3D "<div class=3D'clicked'><jahi=
a:engineResourceBundle resourceName=3D"org.jahia.button.ok"/></div>";
- delete button;
- document.mainForm.screen.value =3D "save";
- saveContent();
- teleportCaptainFlam(document.mainForm);
- }
- }
-
- function sendFormSaveAndAddNew() {
- if (check() && submittedCount =3D=3D 0) {
- var button =3D document.getElementById("saveButtonAdd");
- if (button) button.innerHTML =3D "<div class=3D'clicked'><jahi=
a:engineResourceBundle resourceName=3D"org.jahia.button.saveAddNew"/></div>=
";
- delete button;
- document.mainForm.screen.value =3D "save";
- document.mainForm.addnew.value =3D "true";
- saveContent();
- teleportCaptainFlam(document.mainForm);
- }
- }
-
- function sendFormApply() {
- if (check() && submittedCount =3D=3D 0) {
- <% if (results =3D=3D null) { %>
- var button =3D document.getElementById("applyButton");
- if (button) button.innerHTML =3D "<div class=3D'clicked'><jahi=
a:engineResourceBundle resourceName=3D"org.jahia.button.apply"/></div>";
- delete button;
- <% } %>
- document.mainForm.screen.value =3D "apply";
- saveContent();
- teleportCaptainFlam(document.mainForm);
- }
- }
-
- function sendFormSteal() {
- if (check() && submittedCount =3D=3D 0) {
- document.mainForm.screen.value =3D "apply";
- document.mainForm.whichKeyToSteal.value=3D'<%=3DlockKey%>';
- saveContent();
- teleportCaptainFlam(document.mainForm);
- }
- }
-
- function sendFormCancel() {
- if (submittedCount =3D=3D 0) {
- var src =3D "<%=3DjspSource%>";
- if (src =3D=3D "lock") {
- CloseJahiaWindow();
- return;
- }
- document.mainForm.screen.value =3D "cancel";
- teleportCaptainFlam(document.mainForm);
- }
- }
-
- function changeField(fieldID) {
- submittedCount++;
- document.mainForm.screen.value =3D "<%=3DtheScreen%>";
- document.mainForm.editfid.value =3D fieldID;
- if (check()) {
- saveContent();
- document.mainForm.submit();
- }
- }
-
- function setWaitingCursor(showWaitingImage) {
- if (document.body.style.cursor =3D=3D "wait") return;
- document.body.style.cursor =3D "wait";
- if (showWaitingImage =3D=3D 1)
- openWorkInProgressWindow('<%=3Drequest.getContextPath()%>');
- }
-
- var checkParentTimeOut =3D 500;
- function checkParent() {
- if (!window.opener ||
- (!(window.opener.lastLoginTime=3D=3Dnull) && window.opener.lastLogi=
nTime =3D=3D "0"))
- window.close();
- setTimeout("checkParent()", checkParentTimeOut);
- }
- =
- var sendKeepAliveTimeOut =3D <%=3D session.getMaxInactiveInterval() * =
1000 / 2 %>;
- function sendKeepAlive() {
- new Ajax.Request('<%=3D request.getContextPath() + "/jsp/keepAlive=
.jsp" %>', {
- method: 'get',
- onSuccess: function(transport) {
- setTimeout("sendKeepAlive()", sendKeepAliveTimeOut);
- },
- onFailure: function(transport) {
- // TODO: display a message?
- }
- });
- }
-
- function handleOnLoad() {
- if (workInProgress && !workInProgress.closed) workInProgress.clo=
se(); =
- setTimeout("checkParent()", checkParentTimeOut);
- setTimeout("sendKeepAlive()", sendKeepAliveTimeOut);
- engineCustomHandleOnLoad();
- }
- =
- function engineCustomHandleOnLoad(){
- // should be overriden by sub engine for specific onload code =
- }
-
- function closeTheWindow() {
- var last =3D "<%=3DtheScreen%>";
- var src =3D "<%=3DjspSource%>";
-
- if (src =3D=3D "apply" || src =3D=3D "delete_container") return;
- //alert (submittedCount + "-" + last + "-" + src);
- if (submittedCount =3D=3D 0) {
- if (last !=3D "save" && last !=3D "cancel" && last !=3D "showR=
eport" && src !=3D "apply" &&
- src !=3D "close" && src !=3D "lock") {
- sendFormCancel();
- //alert ("sendFormCancel" + "-" + last + "-" + src);
- }
- if (src =3D=3D "close") {
- // Do refresh opener by setting argument to "yes"
- CloseJahiaWindow("yes");
- } else {
- CloseJahiaWindow();
- }
- }
- }
- <% if (results !=3D null) { %>
- window.onunload =3D null;
- <% } else { %>
- window.onunload =3D closeTheWindow;
+jahia.config =3D {
+ contextPath: '<jahia:serverHttpPath/>',
+ i18n: {
+ 'org.jahia.button.ok': '<jahia:engineResourceBundle resou=
rceName=3D"org.jahia.button.ok"/>',
+ 'org.jahia.button.saveAddNew': '<jahia:engineResourceBundle resou=
rceName=3D"org.jahia.button.saveAddNew"/>',
+ 'org.jahia.button.apply': '<jahia:engineResourceBundle resou=
rceName=3D"org.jahia.button.apply"/>'
+ },
+ theScreen: '<%=3DtheScreen%>',
+ <% if (results !=3D null) {%>
+ lockResults: true,
<% } %>
-
- // resize pageBody
- function resizePagebody() {
- var myWidth =3D 0, myHeight =3D 0;
- if (typeof( window.innerWidth ) =3D=3D 'number') {
- //Non-IE
- myWidth =3D window.innerWidth;
- myHeight =3D window.innerHeight;
- } else if (document.documentElement && ( document.documentElement.=
clientWidth || document.documentElement.clientHeight )) {
- //IE 6+ in 'standards compliant mode'
- myWidth =3D document.documentElement.clientWidth;
- myHeight =3D document.documentElement.clientHeight;
- } else if (document.body && ( document.body.clientWidth || documen=
t.body.clientHeight )) {
- //IE 4 compatible
- myWidth =3D document.body.clientWidth;
- myHeight =3D document.body.clientHeight;
- }
-
- // resize
- var pageBodyEle =3D document.getElementById('pagebody<%=3D(results=
!=3D null ? "ReadOnly" : "")%>');
- var pageBodyEleHeight =3D pageBodyEle.offsetHeight;
- var newHeight =3D (myHeight - 130);
- if (newHeight > pageBodyEleHeight) {
- pageBodyEle.style.height =3D (myHeight - 130) + "px";
- }
- }
-
- Event.observe(window, 'load', handleOnLoad);
- <%
- // javascript method "resizePageBody" doesn't work with ajax call becau=
se we didn't know pageBodyEle size
- if (!"advworkflow".equals(jspSource)){ %>
- Event.observe(window, 'load', resizePagebody);
- <% } %>
-
+ lockKey: '<%=3DlockKey%>',
+ jspSource: '<%=3DjspSource%>',
+ sendKeepAliveTimeOut: <%=3D session.getMaxInactiveInterval() * 1000 / =
2 %> =
+};
</script>
-
+<% if (request.getAttribute("org.jahia.engines.html.headers") !=3D null) {=
%>
+<%=3D (String) request.getAttribute("org.jahia.engines.html.headers") %>
+<% } %>
</head>
=
<body>
Added: branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/javascript/en=
gines.js
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/branches/JAHIA=
-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/javascript/engines.js&rev=3D18702&=
repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/javascript/engin=
es.js (added)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/javascript/engin=
es.js Thu Sep 27 19:07:09 2007
@@ -0,0 +1,260 @@
+var jahia =3D new Object();
+jahia.config =3D new Object();
+
+ function check() {
+ // override this function if neede d in subengine to perform form =
data check
+ // before submit !!!
+ return true;
+ }
+
+ function saveContent() {
+ // used by Html editors
+ // override this for preprocessing before for submission
+ }
+
+ var submittedCount =3D 0;
+
+ function teleportCaptainFlam(what) {
+ if (submittedCount =3D=3D 0) {
+ submittedCount++;
+ document.mainForm.submit();
+ }
+ }
+
+ function handleLanguageChange(lang) {
+ document.mainForm.screen.value =3D jahia.config.theScreen;
+ document.mainForm.engine_lang.value =3D lang;
+ if (check()) {
+ saveContent();
+ teleportCaptainFlam(document.mainForm);
+ }
+ }
+
+ function handleActionChange(what) {
+ submittedCount++;
+ saveContent();
+ document.mainForm.screen.value =3D what;
+ document.mainForm.submit();
+ }
+
+ function sendFormSave() {
+ if (check() && submittedCount =3D=3D 0) {
+ var button =3D document.getElementById("saveButton");
+ if (button) button.innerHTML =3D "<div class=3D'clicked'>" + j=
ahia.config.i18n['org.jahia.button.ok'] + "</div>";
+ delete button;
+ document.mainForm.screen.value =3D "save";
+ saveContent();
+ teleportCaptainFlam(document.mainForm);
+ }
+ }
+
+ function sendFormSaveAndAddNew() {
+ if (check() && submittedCount =3D=3D 0) {
+ var button =3D document.getElementById("saveButtonAdd");
+ if (button) button.innerHTML =3D "<div class=3D'clicked'>" + j=
ahia.config.i18n['org.jahia.button.saveAddNew'] + "</div>";
+ delete button;
+ document.mainForm.screen.value =3D "save";
+ document.mainForm.addnew.value =3D "true";
+ saveContent();
+ teleportCaptainFlam(document.mainForm);
+ }
+ }
+
+ function sendFormApply() {
+ if (check() && submittedCount =3D=3D 0) {
+ if (jahia.config.lockResults) {
+ var button =3D document.getElementById("applyButton");
+ if (button) button.innerHTML =3D "<div class=3D'clicked'>"
+ =
jahia.config.i18n['org.jahia.button.apply'] + "</div>";
+ delete button;
+ }
+ document.mainForm.screen.value =3D "apply";
+ saveContent();
+ teleportCaptainFlam(document.mainForm);
+ }
+ }
+
+ function sendFormSteal() {
+ if (check() && submittedCount =3D=3D 0) {
+ document.mainForm.screen.value =3D "apply";
+ document.mainForm.whichKeyToSteal.value=3Djahia.config.lockKey;
+ saveContent();
+ teleportCaptainFlam(document.mainForm);
+ }
+ }
+
+ function sendFormCancel() {
+ if (submittedCount =3D=3D 0) {
+ var src =3D jahia.config.jspSource;
+ if (src =3D=3D "lock") {
+ CloseJahiaWindow();
+ return;
+ }
+ document.mainForm.screen.value =3D "cancel";
+ teleportCaptainFlam(document.mainForm);
+ }
+ }
+
+ function changeField(fieldID) {
+ submittedCount++;
+ document.mainForm.screen.value =3D jahia.config.theScreen;
+ document.mainForm.editfid.value =3D fieldID;
+ if (check()) {
+ saveContent();
+ document.mainForm.submit();
+ }
+ }
+
+ function setWaitingCursor(showWaitingImage) {
+ if (workInProgressOverlay) {
+ workInProgressOverlay.launch();
+ } else {
+ if (document.body.style.cursor =3D=3D "wait") return;
+ document.body.style.cursor =3D "wait";
+ if (showWaitingImage =3D=3D 1)
+ openWorkInProgressWindow(jahia.config.contextPath);
+ }
+ }
+
+ var checkParentTimeOut =3D 500;
+ function checkParent() {
+ if (!window.opener ||
+ (!(window.opener.lastLoginTime=3D=3Dnull) && window.opener.lastL=
oginTime =3D=3D "0"))
+ window.close();
+ setTimeout("checkParent()", checkParentTimeOut);
+ }
+ =
+ function sendKeepAlive() {
+ new Ajax.Request(jahia.config.contextPath + '/jsp/keepAlive.jsp', {
+ method: 'get',
+ onSuccess: function(transport) {
+ setTimeout("sendKeepAlive()", jahia.config.sendKeepAliveTi=
meOut);
+ },
+ onFailure: function(transport) {
+ // TODO: display a message?
+ }
+ });
+ }
+
+ function handleOnLoad() {
+ //if (workInProgress && !workInProgress.closed) workInProgress.c=
lose(); =
+ setTimeout("checkParent()", checkParentTimeOut);
+ setTimeout("sendKeepAlive()", jahia.config.sendKeepAliveTimeOut);
+ engineCustomHandleOnLoad();
+ }
+ =
+ function engineCustomHandleOnLoad(){
+ // should be overriden by sub engine for specific onload code =
+ }
+
+ function closeTheWindow() {
+ var last =3D jahia.config.theScreen;
+ var src =3D jahia.config.jspSource;
+
+ if (src =3D=3D "apply" || src =3D=3D "delete_container") return;
+ if (submittedCount =3D=3D 0) {
+ if (last !=3D "save" && last !=3D "cancel" && last !=3D "showR=
eport" && src !=3D "apply" &&
+ src !=3D "close" && src !=3D "lock") {
+ sendFormCancel();
+ }
+ if (src =3D=3D "close") {
+ // Do refresh opener by setting argument to "yes"
+ CloseJahiaWindow("yes");
+ } else {
+ CloseJahiaWindow();
+ }
+ }
+ }
+ if (jahia.config.lockResults) {
+ window.onunload =3D null;
+ } else {
+ window.onunload =3D closeTheWindow;
+ }
+
+ // resize pageBody
+ function resizePagebody() {
+ var myWidth =3D 0, myHeight =3D 0;
+ if (typeof( window.innerWidth ) =3D=3D 'number') {
+ //Non-IE
+ myWidth =3D window.innerWidth;
+ myHeight =3D window.innerHeight;
+ } else if (document.documentElement && ( document.documentElement.=
clientWidth || document.documentElement.clientHeight )) {
+ //IE 6+ in 'standards compliant mode'
+ myWidth =3D document.documentElement.clientWidth;
+ myHeight =3D document.documentElement.clientHeight;
+ } else if (document.body && ( document.body.clientWidth || documen=
t.body.clientHeight )) {
+ //IE 4 compatible
+ myWidth =3D document.body.clientWidth;
+ myHeight =3D document.body.clientHeight;
+ }
+
+ // resize
+ var pageBodyEle =3D document.getElementById('pagebody' + (jahia.co=
nfig.lockResults ? 'ReadOnly' : ''));
+ var pageBodyEleHeight =3D pageBodyEle.offsetHeight;
+ var newHeight =3D (myHeight - 130);
+ if (newHeight > pageBodyEleHeight) {
+ pageBodyEle.style.height =3D (myHeight - 130) + "px";
+ }
+ }
+
+ Event.observe(window, 'load', handleOnLoad);
+ // javascript method "resizePageBody" doesn't work with ajax call becau=
se we didn't know pageBodyEle size
+ if ('advworkflow' !=3D jahia.config.jspSource){
+ Event.observe(window, 'load', resizePagebody);
+ }
+
+
+var workInProgressOverlay;
+Event.observe(window, 'load', function () {
+ workInProgressOverlay =3D new WorkInProgressLoader();
+ if (saveContent && (typeof saveContent =3D=3D 'function')) {
+ var oldSaveContent =3D saveContent;
+ saveContent =3D function () {
+ workInProgressOverlay.launch();
+ oldSaveContent();
+ };
+ }
+});
+
+/*
+ Greys out the dialog window displaying 'Loading...' icon.
+ Requires: Prototype 1.5.0+
+ @author Sergiy Shyrkov
+ IE fix was taken from the 'lightbox gone wild' implementation found at ht=
tp://particletree.com/features/lightbox-gone-wild/
+*/ =
+var WorkInProgressLoader =3D Class.create();
+
+WorkInProgressLoader.prototype =3D {
+ initialize: function () {
+ this._createMarkup(jahia.config.contextPath);
+ },
+ launch: function() {
+ if (navigator.appVersion.match(/\bMSIE\b/)){
+ this._prepareIE('100%', 'hidden');
+ window.scrollTo(0, 0);
+
$A(document.getElementsByTagName('select')).map(Element.extend).i=
nvoke('hide');
+ }
+ $('workInProgressOverlay').style.display =3D 'block';
+ },
+
+ _createMarkup: function(webContext) {
+ bod =3D document.getElementsByTagName('body')[0];
+ overlay =3D document.createElement('div');
+ overlay.id =3D 'workInProgressOverlay';
+ var imgLoading =3D document.createElement('img');
+ imgLoading.src =3D webContext + '/jsp/jahia/engines/images/waiting=
_large.gif';
+ imgLoading.alt =3D 'Loading...';
+ imgLoading.title =3D 'Loading...';
+ overlay.appendChild(imgLoading);
+ bod.appendChild(overlay);
+ },
+ =
+ _prepareIE: function(height, overflow) {
+ bod =3D document.getElementsByTagName('body')[0];
+ bod.style.height =3D height;
+ bod.style.overflow =3D overflow;
+ =
+ htm =3D document.getElementsByTagName('html')[0];
+ htm.style.height =3D height;
+ htm.style.overflow =3D overflow; =
+ }
+}
\ No newline at end of file
_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list