mirror of https://github.com/apache/archiva.git
add small spinner when loading content
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341224 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
719e740c7a
commit
792ae88606
Binary file not shown.
Before Width: | Height: | Size: 537 B |
Binary file not shown.
After Width: | Height: | Size: 105 B |
Binary file not shown.
After Width: | Height: | Size: 106 B |
Binary file not shown.
Before Width: | Height: | Size: 583 B |
|
@ -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*/
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue