|
|
|
@ -47,18 +47,6 @@ const elements = { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($('[data-page="address-logs"]').length) { |
|
|
|
|
const store = createAsyncLoadStore(reducer, initialState, 'dataset.identifierHash') |
|
|
|
|
const addressHash = $('[data-page="address-details"]')[0].dataset.pageAddressHash |
|
|
|
|
const $element = $('[data-async-listing]') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connectElements({ store, elements }) |
|
|
|
|
|
|
|
|
|
store.dispatch({ |
|
|
|
|
type: 'PAGE_LOAD', |
|
|
|
|
addressHash: addressHash}) |
|
|
|
|
|
|
|
|
|
function loadSearchItems () { |
|
|
|
|
var topic = $('[data-search-field]').val(); |
|
|
|
|
var path = "/search_logs?topic=" + topic + "&address_id=" + store.getState().addressHash |
|
|
|
@ -69,6 +57,16 @@ if ($('[data-page="address-logs"]').length) { |
|
|
|
|
.always(() => store.dispatch({type: 'FINISH_REQUEST'})) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($('[data-page="address-logs"]').length) { |
|
|
|
|
const store = createAsyncLoadStore(reducer, initialState, 'dataset.identifierHash') |
|
|
|
|
const addressHash = $('[data-page="address-details"]')[0].dataset.pageAddressHash |
|
|
|
|
const $element = $('[data-async-listing]') |
|
|
|
|
|
|
|
|
|
connectElements({ store, elements }) |
|
|
|
|
|
|
|
|
|
store.dispatch({ |
|
|
|
|
type: 'PAGE_LOAD', |
|
|
|
|
addressHash: addressHash}) |
|
|
|
|
|
|
|
|
|
$element.on('click', '[data-search-button]', (event) => { |
|
|
|
|
store.dispatch({ |
|
|
|
|