customShowError("#main-content #search-basic-form", null, null, []);
}
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;
$.ajax("restServices/archivaServices/searchService/quickSearchWithRepositories",
{
error: function(data) {
var res = $.parseJSON(data.responseText);
displayRestError(res);
+ },
+ complete:function() {
+ $("#main-content #btn-basic-search" ).button("reset");
+ removeMediumSpinnerImg("#user-messages");
}
}
);
<option value="${repoId}">${repoId}</option>
{{/each}}
</select>
- </div>
- <div class="control-group">
- <label class="control-label" for="search-terms"></label>
- <div class="controls">
- <input type="text" class="input-medium search-query" id="search-terms" name="search-terms" size="50"
- data-bind="value: searchRequest().queryTerms" placeholder="${$.i18n.prop('search.artifact.search.form.query.terms')}"/>
</div>
- </div>
- <button type="submit" class="btn" data-bind="click: basicSearch">Search</button>
+ <div class="control-group">
+ <label class="control-label" for="search-terms"></label>
+ <div class="controls">
+ <input type="text" class="input-medium search-query" id="search-terms" name="search-terms" size="50"
+ data-bind="value: searchRequest().queryTerms" placeholder="${$.i18n.prop('search.artifact.search.form.query.terms')}"/>
+ </div>
+ </div>
+ <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>
</div>
<div class="pill-pane" id="search-advanced-form-pane">
</div>
</div>
</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>
</div>
<div class="pill-pane" id="search-osgi-form-pane">