modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/edit.xhtml | 2 ++ modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/raw.xhtml | 2 ++ modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/view-raw-modal.xhtml | 3 ++- modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/view.xhtml | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-)
New commits: commit a762a518446033de919b56203e21773fc7884c6f Author: John Sanda john@localhost.localdomain Date: Wed Feb 24 14:56:36 2010 -0500
Adding more status indicators for more of the ajax requests on the page
diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/edit.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/edit.xhtml index 753e70f..2e649db 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/edit.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/edit.xhtml @@ -28,10 +28,12 @@ THIS TEXT WILL BE REMOVED. <script type="text/javascript"> function cursor_wait() { document.body.style.cursor = 'wait'; + return true; }
function cursor_clear() { document.body.style.cursor = 'default'; + return true; }
var currentFileModified = false; diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/raw.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/raw.xhtml index 747886d..af38dba 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/raw.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/raw.xhtml @@ -80,6 +80,8 @@ styleClass="rawConfigUndoButton" rendered="#{rawConfigUIBean.modified}" action="#{configurationEditor.undoEdit(rawConfigUIBean.path)}" + onclick="cursor_wait()" + oncomplete="cursor_clear()" reRender="fileMenu,fileContents,upperChangedFilesLabel,lowerChangedFilesLabel,modalFileContents"/> </h:panelGrid> </rich:panelMenuItem> diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/view-raw-modal.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/view-raw-modal.xhtml index 75cf462..6a47650 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/view-raw-modal.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/view-raw-modal.xhtml @@ -50,7 +50,8 @@ rendered="#{!readOnly}" reRender="fileContents,fileMenuPanel,lowerChangedFilesLabel,upperChangedFilesLabel" styleClass="buttonmed" - onclick="#{rich:component('modalEditor')}.hide()"/> + onclick="#{rich:component('modalEditor')}.hide(); cursor_wait();" + oncomplete="cursor_clear();"/> <a4j:commandButton value="Cancel" onclick="#{rich:component('modalEditor')}.hide()" styleClass="buttonmed"/> </h:panelGroup> </h:panelGrid> diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/view.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/view.xhtml index 6541456..09d630d 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/view.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/configuration/view.xhtml @@ -30,10 +30,12 @@ THIS TEXT WILL BE REMOVED. <script type="text/javascript"> function cursor_wait() { document.body.style.cursor = 'wait'; + return true; }
function cursor_clear() { document.body.style.cursor = 'default'; + return true; } </script>
rhq-commits@lists.fedorahosted.org