Skip to content
Snippets Groups Projects
Commit 03e10445 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

fix style in search

parent 1be46b0d
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ var search = function() { ...@@ -12,7 +12,7 @@ var search = function() {
} }
// change url with new parameters // change url with new parameters
if (!fetch_init) { fetch_init = true} if (!fetch_init) { fetch_init = true; }
else if (!append) { searchState(params); } else if (!append) { searchState(params); }
$.ajax({ $.ajax({
...@@ -24,7 +24,7 @@ var search = function() { ...@@ -24,7 +24,7 @@ var search = function() {
$('.search-more').remove(); $('.search-more').remove();
} }
else { else {
$('.result-info').hide(); $('.result-bar').hide();
$("#search-fetch").empty(); $("#search-fetch").empty();
} }
$('#search-fetch').append('<div class="search-loading" style="text-align:center;"><br><div class="pong-loader">Carregando...</div></div>'); $('#search-fetch').append('<div class="search-loading" style="text-align:center;"><br><div class="pong-loader">Carregando...</div></div>');
...@@ -37,7 +37,7 @@ var search = function() { ...@@ -37,7 +37,7 @@ var search = function() {
else { else {
$("#search-fetch").empty(); $("#search-fetch").empty();
$('.result-info-count').html($(data).filter('input:hidden[name="learning-objects-count"]').val()); $('.result-info-count').html($(data).filter('input:hidden[name="learning-objects-count"]').val());
$('.result-info').show(); $('.result-bar').show();
} }
$("#search-fetch").append(data); $("#search-fetch").append(data);
...@@ -176,7 +176,7 @@ var search = function() { ...@@ -176,7 +176,7 @@ var search = function() {
$('.search-more').on('click', function (event) { $('.search-more').on('click', function (event) {
event.preventDefault(); event.preventDefault();
params.add('page', params.get('page') + 1); params.add('page', params.get('page') + 1);
searchFetch(); searchFetch(true);
}); });
} }
} }
......
...@@ -20,14 +20,18 @@ ...@@ -20,14 +20,18 @@
width: 100% !important; width: 100% !important;
} }
.result-info{ .result-bar {
font-weight: 500; display: none;
color: #88888D;
}
.sort-dropdown{ .result-info {
border: 0; font-weight: 500;
border-radius: 3px; color: #88888D;
color: #59585A; }
padding-right: 20px;
.sort-dropdown {
border: 0;
border-radius: 3px;
color: #59585A;
padding-right: 20px;
}
} }
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
<!-- search results --> <!-- search results -->
<div class="col-sm-8"> <div class="col-sm-8">
<div> <div class="result-bar">
<form method="get"> <form method="get">
<input type="hidden" name="qry" value="<%= params["qry"] %>"> <input type="hidden" name="qry" value="<%= params["qry"] %>">
<div class="col-sm-6"> <div class="col-sm-6">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment