mirror of https://github.com/apache/archiva.git
add spinner and modify button state when searching
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295047 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9eb977f581
commit
a67abc4333
|
@ -222,3 +222,4 @@ search.artifact.noresults=No results found.
|
||||||
search.artifact.results.groupId=Group ID
|
search.artifact.results.groupId=Group ID
|
||||||
search.artifact.results.artifactId=Artifact ID
|
search.artifact.results.artifactId=Artifact ID
|
||||||
search.artifact.results.version=Version
|
search.artifact.results.version=Version
|
||||||
|
search.artifact.searching=Searching .....
|
||||||
|
|
|
@ -688,7 +688,8 @@ $(function() {
|
||||||
customShowError("#main-content #search-basic-form", null, null, []);
|
customShowError("#main-content #search-basic-form", null, null, []);
|
||||||
}
|
}
|
||||||
var searchResultsGrid=$("#main-content #search-results #search-results-grid" );
|
var searchResultsGrid=$("#main-content #search-results #search-results-grid" );
|
||||||
$("#main-content #user-messages").html(mediumSpinnerImg());
|
$("#main-content #btn-basic-search" ).button("loading");
|
||||||
|
$("#user-messages").html(mediumSpinnerImg());
|
||||||
this.searchRequest().repositories=this.selectedRepoIds;
|
this.searchRequest().repositories=this.selectedRepoIds;
|
||||||
$.ajax("restServices/archivaServices/searchService/quickSearchWithRepositories",
|
$.ajax("restServices/archivaServices/searchService/quickSearchWithRepositories",
|
||||||
{
|
{
|
||||||
|
@ -715,6 +716,10 @@ $(function() {
|
||||||
error: function(data) {
|
error: function(data) {
|
||||||
var res = $.parseJSON(data.responseText);
|
var res = $.parseJSON(data.responseText);
|
||||||
displayRestError(res);
|
displayRestError(res);
|
||||||
|
},
|
||||||
|
complete:function() {
|
||||||
|
$("#main-content #btn-basic-search" ).button("reset");
|
||||||
|
removeMediumSpinnerImg("#user-messages");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -209,7 +209,8 @@
|
||||||
data-bind="value: searchRequest().queryTerms" placeholder="${$.i18n.prop('search.artifact.search.form.query.terms')}"/>
|
data-bind="value: searchRequest().queryTerms" placeholder="${$.i18n.prop('search.artifact.search.form.query.terms')}"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn" data-bind="click: basicSearch">Search</button>
|
<button type="submit" id="btn-basic-search" class="btn btn-primary" data-loading-text="${$.i18n.prop('search.artifact.searching')}" data-bind="click: basicSearch">Search</button>
|
||||||
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="pill-pane" id="search-advanced-form-pane">
|
<div class="pill-pane" id="search-advanced-form-pane">
|
||||||
|
@ -251,7 +252,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<button type="submit" class="btn" data-bind="click: advancedSearch">Search</button>
|
<button type="submit" id="btn-advanced-search" class="btn btn-primary" class="btn" data-bind="click: advancedSearch">Search</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="pill-pane" id="search-osgi-form-pane">
|
<div class="pill-pane" id="search-osgi-form-pane">
|
||||||
|
|
Loading…
Reference in New Issue