mirror of
https://github.com/kokororin/typecho-plugin-Access.git
synced 2025-03-14 03:40:21 +08:00
feat: add placeholder to result table
This commit is contained in:
parent
de75cbb7ac
commit
a4bbd3bd27
@ -117,6 +117,13 @@ select.typecho-access-logs-filter-item__content {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.typecho-access-logs-table-placeholder {
|
||||
font-size: 18px;
|
||||
color: #cccccc;
|
||||
font-weight: normal;
|
||||
letter-spacing: 3px;
|
||||
}
|
||||
|
||||
.typecho-access-logs-pagination-jump {
|
||||
float: right;
|
||||
display: flex;
|
||||
|
@ -131,6 +131,9 @@ $(document).ready(function () {
|
||||
// append row to table body
|
||||
$tbody.append($tr);
|
||||
});
|
||||
if ($tbody.html() === '') {
|
||||
$tbody.html('<tr><td colspan="7"><h6 class="typecho-list-table-title typecho-access-logs-table-placeholder">暂无数据</h6></td></tr>');
|
||||
}
|
||||
$('a[data-action="search-anchor"]').click(onSearchAnchorClick);
|
||||
|
||||
// logs pagination
|
||||
|
Loading…
Reference in New Issue
Block a user