Create CSS class instead of using inline style for search results
This commit is contained in:
parent
03360be6b7
commit
26edfc9e31
2 changed files with 6 additions and 2 deletions
|
@ -545,6 +545,10 @@ nav.sub {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.search-loading {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
#results > table {
|
#results > table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
|
|
|
@ -289,8 +289,8 @@ function hideThemeButtonState() {
|
||||||
var params = searchState.getQueryStringParams();
|
var params = searchState.getQueryStringParams();
|
||||||
if (params.search !== undefined) {
|
if (params.search !== undefined) {
|
||||||
var search = searchState.outputElement();
|
var search = searchState.outputElement();
|
||||||
search.innerHTML = "<h3 style=\"text-align: center;\">" +
|
search.innerHTML = "<h3 class=\"search-loading\">" +
|
||||||
searchState.loadingText + "</h3>";
|
searchState.loadingText + "</h3>";
|
||||||
searchState.showResults(search);
|
searchState.showResults(search);
|
||||||
loadSearch();
|
loadSearch();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue