Skip to content

Commit dff25f1

Browse files
committed
fix: update style for search bar
1 parent b97e889 commit dff25f1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

public/js/script.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ function createPagination(paginationSetting) {
428428
function loadItems(page) {
429429
loading(true);
430430
var keyword = $('#keyword').val();
431-
performLfmRequest('jsonitems', {show_list: show_list, sort_type: sort_type, page: page || 1}, 'html')
431+
performLfmRequest('jsonitems', { show_list: show_list, sort_type: sort_type, page: page || 1, keyword: keyword }, 'html')
432432
.done(function (data) {
433433
selected = [];
434434
var response = JSON.parse(data);
@@ -800,7 +800,6 @@ function defaultParameters() {
800800
return {
801801
working_dir: $('#working_dir').val(),
802802
type: $('#type').val(),
803-
keyword: $('#keyword').val(),
804803
};
805804
}
806805

resources/views/index.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@
9393
</label>
9494

9595
<div class="search-bar">
96-
<input type="text" name="keyword" id="keyword" placeholder="keyword">
97-
<button type="button" id="keyword-button" >Search</button>
98-
<button type="button" id="keyword-reset-button" >Reset</button>
96+
<input type="text" name="keyword" id="keyword" placeholder="keyword" class="form-control">
97+
<button type="button" id="keyword-button" class="btn btn-outline-primary">Search</button>
98+
<button type="button" id="keyword-reset-button" class="btn btn-outline-secondary">Reset</button>
9999
</div>
100100
</div>
101101

0 commit comments

Comments
 (0)