()
| 116 | }) |
| 117 | |
| 118 | function checkHistoryList () { |
| 119 | if ($('#history-list').children().length > 0) { |
| 120 | $('.pagination').show() |
| 121 | $('.ui-nohistory').hide() |
| 122 | $('.ui-import-from-browser').hide() |
| 123 | } else if ($('#history-list').children().length === 0) { |
| 124 | $('.pagination').hide() |
| 125 | $('.ui-nohistory').slideDown() |
| 126 | getStorageHistory(data => { |
| 127 | if (data && data.length > 0 && getLoginState() && historyList.items.length === 0) { |
| 128 | $('.ui-import-from-browser').slideDown() |
| 129 | } |
| 130 | }) |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | function parseHistoryCallback (list, notehistory) { |
| 135 | checkHistoryList() |
no test coverage detected