diff options
author | Olivier Lamy <olamy@apache.org> | 2012-05-21 22:06:55 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-05-21 22:06:55 +0000 |
commit | 792ae88606fa249ea92117711f2781a4077aacea (patch) | |
tree | 79a891e847ad62a2fe89d0371482614d195d3e53 /archiva-modules | |
parent | 719e740c7a2d1e204f356bf1b15285132f74e4cf (diff) | |
download | archiva-792ae88606fa249ea92117711f2781a4077aacea.tar.gz archiva-792ae88606fa249ea92117711f2781a4077aacea.zip |
add small spinner when loading content
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341224 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rwxr-xr-x | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/directory.png | bin | 537 -> 0 bytes | |||
-rwxr-xr-x | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder-closed.gif | bin | 0 -> 105 bytes | |||
-rwxr-xr-x | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder.gif | bin | 0 -> 106 bytes | |||
-rwxr-xr-x | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder_open.png | bin | 583 -> 0 bytes | |||
-rwxr-xr-x | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/jqueryFileTree.css | 4 | ||||
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js | 5 |
6 files changed, 5 insertions, 4 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/directory.png b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/directory.png Binary files differdeleted file mode 100755 index 784e8fa48..000000000 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/directory.png +++ /dev/null diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder-closed.gif b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder-closed.gif Binary files differnew file mode 100755 index 000000000..541107888 --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder-closed.gif diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder.gif b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder.gif Binary files differnew file mode 100755 index 000000000..2b31631ca --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder.gif diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder_open.png b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder_open.png Binary files differdeleted file mode 100755 index 4e3548352..000000000 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder_open.png +++ /dev/null diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/jqueryFileTree.css b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/jqueryFileTree.css index 01ff50e1e..073d1fdec 100755 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/jqueryFileTree.css +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/jqueryFileTree.css @@ -26,8 +26,8 @@ UL.jqueryFileTree A:hover { }
/* Core Styles */
-.jqueryFileTree LI.directory { background: url(images/directory.png) left top no-repeat; }
-.jqueryFileTree LI.expanded { background: url(images/folder_open.png) left top no-repeat; }
+.jqueryFileTree LI.directory { background: url(images/folder-closed.gif) left top no-repeat; }
+.jqueryFileTree LI.expanded { background: url(images/folder.gif) left top no-repeat; }
.jqueryFileTree LI.file { background: url(images/file.png) left top no-repeat; }
.jqueryFileTree LI.wait { background: url(images/spinner.gif) left top no-repeat; }
/* File Extensions*/
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js index a1443da03..c2c3ec4d2 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js @@ -271,8 +271,7 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock } if ($(e.target).attr("href")=="#artifact-details-files-content") { - $.log("file content:"+self.groupId+":"+self.artifactId+":"+self.version); - + mainContent.find("#artifact-details-files-content" ).html(smallSpinnerImg()); var artifactDownloadInfosUrl = "restServices/archivaServices/browseService/artifactDownloadInfos/"+encodeURIComponent(self.groupId); artifactDownloadInfosUrl+="/"+encodeURIComponent(self.artifactId)+"/"+encodeURIComponent(self.version); artifactDownloadInfosUrl+="?repositoryId="+encodeURIComponent(getSelectedBrowsingRepository()); @@ -292,6 +291,7 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock pomContentUrl+="/"+encodeURIComponent(self.artifactId)+"/"+encodeURIComponent(self.version); pomContentUrl+="?repositoryId="+encodeURIComponent(getSelectedBrowsingRepository()); pomContentUrl+="&t=pom"; + mainContent.find("#artifact-content-text" ).html(smallSpinnerImg()); $.ajax({ url: pomContentUrl, dataType: "text", @@ -333,6 +333,7 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock $.log("data:"+data); var text = data.replace(/</g,'<'); text=text.replace(/>/g,">"); + mainContent.find("#artifact-content-text" ).html(smallSpinnerImg()); mainContent.find("#artifact-content-text" ).html(text); goToAnchor("artifact-content-text-header"); } |