This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository scmwebeditor. See http://git.nuiton.org/scmwebeditor.git commit aa460ff2e8b882debe43bbeb8e0fe010b8201faf Author: Hugo PIGEON <hpigeon@codelutin.com> Date: Wed May 27 14:35:46 2015 +0200 Add loading indicators when browsing a repository and when saving the changes --- swe-ui-web/src/main/webapp/WEB-INF/content/browse.jsp | 2 ++ swe-ui-web/src/main/webapp/WEB-INF/content/modificationViewer.jsp | 2 ++ swe-ui-web/src/main/webapp/WEB-INF/content/outConnection.jsp | 3 +++ swe-ui-web/src/main/webapp/css/main.css | 4 ++++ 4 files changed, 11 insertions(+) diff --git a/swe-ui-web/src/main/webapp/WEB-INF/content/browse.jsp b/swe-ui-web/src/main/webapp/WEB-INF/content/browse.jsp index d5da160..fe50a0a 100644 --- a/swe-ui-web/src/main/webapp/WEB-INF/content/browse.jsp +++ b/swe-ui-web/src/main/webapp/WEB-INF/content/browse.jsp @@ -30,6 +30,8 @@ <sj:head debug="true" jquerytheme="default"/> <script> + document.getElementById('browseIndicator').style.display = 'none'; + $.subscribe('treeClicked', function(event, data) { var item = event.originalEvent.data.rslt.obj; diff --git a/swe-ui-web/src/main/webapp/WEB-INF/content/modificationViewer.jsp b/swe-ui-web/src/main/webapp/WEB-INF/content/modificationViewer.jsp index 82c23fa..6dd5dc9 100644 --- a/swe-ui-web/src/main/webapp/WEB-INF/content/modificationViewer.jsp +++ b/swe-ui-web/src/main/webapp/WEB-INF/content/modificationViewer.jsp @@ -117,6 +117,8 @@ event.originalEvent.options.submit = continueProcess; if (continueProcess) { + var message = document.getElementById("htmlcontentCommit"); + message.innerHTML = '<img src="struts/js/jstree/themes/classic/throbber.gif" alt="loading"/>'; loadChange(); checkExit(); } diff --git a/swe-ui-web/src/main/webapp/WEB-INF/content/outConnection.jsp b/swe-ui-web/src/main/webapp/WEB-INF/content/outConnection.jsp index 793794e..bca9840 100644 --- a/swe-ui-web/src/main/webapp/WEB-INF/content/outConnection.jsp +++ b/swe-ui-web/src/main/webapp/WEB-INF/content/outConnection.jsp @@ -115,8 +115,11 @@ button="true" buttonIcon="ui-icon-refresh" value="%{search}" + onclick="document.getElementById('browseIndicator').style.display = 'inline';" > </sj:submit> + + <img src="struts/js/jstree/themes/classic/throbber.gif" alt="loading" id="browseIndicator"/> </p> </center> diff --git a/swe-ui-web/src/main/webapp/css/main.css b/swe-ui-web/src/main/webapp/css/main.css index 50beb1e..1bff934 100644 --- a/swe-ui-web/src/main/webapp/css/main.css +++ b/swe-ui-web/src/main/webapp/css/main.css @@ -434,4 +434,8 @@ ul.flags li { #ajaxSaveButton { text-decoration: none; +} + +#browseIndicator { + display: none; } \ No newline at end of file -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.