|
|
|
@ -129,6 +129,9 @@ class MarketHistoryChart { |
|
|
|
|
export function createMarketHistoryChart (el) { |
|
|
|
|
const dataPath = el.dataset.market_history_chart_path |
|
|
|
|
const $chartLoading = $('[data-chart-loading-message]') |
|
|
|
|
|
|
|
|
|
$chartLoading.removeAttr('hidden') |
|
|
|
|
|
|
|
|
|
const $chartError = $('[data-chart-error-message]') |
|
|
|
|
const chart = new MarketHistoryChart(el, 0, []) |
|
|
|
|
$.getJSON(dataPath, {type: 'JSON'}) |
|
|
|
@ -148,7 +151,6 @@ export function createMarketHistoryChart (el) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$('[data-chart-error-message]').on('click', _event => { |
|
|
|
|
$('[data-chart-loading-message]').removeAttr('hidden') |
|
|
|
|
$('[data-chart-loading-message]').show() |
|
|
|
|
$('[data-chart-error-message]').hide() |
|
|
|
|
createMarketHistoryChart($('[data-chart="marketHistoryChart"]')[0]) |
|
|
|
|