Update to make history refresh have better UX and keep the beginning and end of the pagination visible
This commit is contained in:
parent
cd9f8fe36b
commit
f4fe27e26c
1 changed files with 7 additions and 1 deletions
|
@ -21,7 +21,9 @@ var options = {
|
|||
</li>',
|
||||
page: 18,
|
||||
plugins: [
|
||||
ListPagination({})
|
||||
ListPagination({
|
||||
outerWindow: 1
|
||||
})
|
||||
]
|
||||
};
|
||||
var historyList = new List('history', options);
|
||||
|
@ -305,6 +307,8 @@ $(".ui-refresh-history").click(function () {
|
|||
var lastKeyword = $('.search').val();
|
||||
$('.search').val('');
|
||||
historyList.search();
|
||||
$('#history-list').slideUp('fast');
|
||||
$('.pagination').slideUp('fast');
|
||||
|
||||
resetCheckAuth();
|
||||
historyList.clear();
|
||||
|
@ -315,6 +319,8 @@ $(".ui-refresh-history").click(function () {
|
|||
historyList.search(lastKeyword);
|
||||
$('.search').val(lastKeyword);
|
||||
checkHistoryList();
|
||||
$('#history-list').slideDown('fast');
|
||||
$('.pagination').slideDown('fast');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue