]> source.dussan.org Git - archiva.git/commitdiff
add small spinner when loading content
authorOlivier Lamy <olamy@apache.org>
Mon, 21 May 2012 22:06:55 +0000 (22:06 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 21 May 2012 22:06:55 +0000 (22:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341224 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/directory.png [deleted file]
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder-closed.gif [new file with mode: 0755]
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder.gif [new file with mode: 0755]
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder_open.png [deleted file]
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/jqueryFileTree.css
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js

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
deleted file mode 100755 (executable)
index 784e8fa..0000000
Binary files a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/directory.png and /dev/null differ
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
new file mode 100755 (executable)
index 0000000..5411078
Binary files /dev/null and b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder-closed.gif differ
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
new file mode 100755 (executable)
index 0000000..2b31631
Binary files /dev/null and b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder.gif differ
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
deleted file mode 100755 (executable)
index 4e35483..0000000
Binary files a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/css/images/folder_open.png and /dev/null differ
index 01ff50e1e9748e69d4d67319847bb13c92667835..073d1fdec39e3542e4ec66f29c96e2862aa6e082 100755 (executable)
@@ -26,8 +26,8 @@ UL.jqueryFileTree A:hover {
 }\r
 \r
 /* Core Styles */\r
-.jqueryFileTree LI.directory { background: url(images/directory.png) left top no-repeat; }\r
-.jqueryFileTree LI.expanded { background: url(images/folder_open.png) left top no-repeat; }\r
+.jqueryFileTree LI.directory { background: url(images/folder-closed.gif) left top no-repeat; }\r
+.jqueryFileTree LI.expanded { background: url(images/folder.gif) left top no-repeat; }\r
 .jqueryFileTree LI.file { background: url(images/file.png) left top no-repeat; }\r
 .jqueryFileTree LI.wait { background: url(images/spinner.gif) left top no-repeat; }\r
 /* File Extensions*/\r
index a1443da03e79d3296b886d1e7aa7b5b1b8492351..c2c3ec4d2f391a8c6fbefd85a92ea777620c2e69 100644 (file)
@@ -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,'&lt;');
                              text=text.replace(/>/g,"&gt;");
+                             mainContent.find("#artifact-content-text" ).html(smallSpinnerImg());
                              mainContent.find("#artifact-content-text" ).html(text);
                              goToAnchor("artifact-content-text-header");
                            }