diff --git a/apps/block_scout_web/assets/js/pages/favorites.js b/apps/block_scout_web/assets/js/pages/favorites.js index 8727ce9ddc..38d4da45ee 100644 --- a/apps/block_scout_web/assets/js/pages/favorites.js +++ b/apps/block_scout_web/assets/js/pages/favorites.js @@ -1,7 +1,7 @@ import $ from 'jquery' -var favoritesContainer = $('.js-favorites-tab'); -var favoritesNetworksUrls = []; +var favoritesContainer = $('.js-favorites-tab') +var favoritesNetworksUrls = [] if (localStorage.getItem('favoritesNetworksUrls') === null) { localStorage.setItem('favoritesNetworksUrls', JSON.stringify(favoritesNetworksUrls)) @@ -10,10 +10,10 @@ if (localStorage.getItem('favoritesNetworksUrls') === null) { } $(document).on('change', ".network-selector-item-favorite input[type='checkbox']", function () { - var networkUrl = $(this).attr('data-url'), - thisStatus = $(this).is(':checked'), - parent = $(".network-selector-item[data-url='" + networkUrl + "'").clone(), - workWith = $(".network-selector-item[data-url='" + networkUrl + "'") + var networkUrl = $(this).attr('data-url') + var thisStatus = $(this).is(':checked'); + var parent = $(".network-selector-item[data-url='" + networkUrl + "'").clone(); + var workWith = $(".network-selector-item[data-url='" + networkUrl + "'"); // Add new checkbox status to same network in another tabs $(".network-selector-item-favorite input[data-url='" + networkUrl + "']").prop('checked', thisStatus) diff --git a/apps/block_scout_web/assets/js/pages/network-search.js b/apps/block_scout_web/assets/js/pages/network-search.js index 41f41986f2..b73ea635b9 100644 --- a/apps/block_scout_web/assets/js/pages/network-search.js +++ b/apps/block_scout_web/assets/js/pages/network-search.js @@ -1,15 +1,15 @@ import $ from 'jquery' -var networkSearchInput = $('.network-selector-search-input'), - networkSearchInputVal = '' +var networkSearchInput = $('.network-selector-search-input') +var networkSearchInputVal = "" $(networkSearchInput).on('input', function () { networkSearchInputVal = $(this).val() $.expr[':'].Contains = $.expr.createPseudo(function (arg) { - return function (elem) { - return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0 - } + return function (elem) { + return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0 + } }) if (networkSearchInputVal === '') { diff --git a/apps/block_scout_web/assets/static/images/network-selector-icons/goerli-testnet.png b/apps/block_scout_web/assets/static/images/network-selector-icons/goerli-testnet.png old mode 100755 new mode 100644 index 800590fee5..7a3ac4ae48 Binary files a/apps/block_scout_web/assets/static/images/network-selector-icons/goerli-testnet.png and b/apps/block_scout_web/assets/static/images/network-selector-icons/goerli-testnet.png differ diff --git a/apps/block_scout_web/assets/static/images/network-selector-icons/ropsten-testnet.png b/apps/block_scout_web/assets/static/images/network-selector-icons/ropsten-testnet.png index 91581113df..bc5afa1a2e 100644 Binary files a/apps/block_scout_web/assets/static/images/network-selector-icons/ropsten-testnet.png and b/apps/block_scout_web/assets/static/images/network-selector-icons/ropsten-testnet.png differ diff --git a/apps/block_scout_web/assets/static/images/network-selector-icons/xdai-chain.png b/apps/block_scout_web/assets/static/images/network-selector-icons/xdai-chain.png index ab35a5b072..5fb54a4175 100644 Binary files a/apps/block_scout_web/assets/static/images/network-selector-icons/xdai-chain.png and b/apps/block_scout_web/assets/static/images/network-selector-icons/xdai-chain.png differ diff --git a/apps/block_scout_web/lib/block_scout_web/templates/layout/_network_selector.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/layout/_network_selector.html.eex index 044d8790bc..41f990b589 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/layout/_network_selector.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/layout/_network_selector.html.eex @@ -47,9 +47,6 @@
No content.
- \ No newline at end of file diff --git a/apps/block_scout_web/lib/block_scout_web/templates/layout/_network_selector_item.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/layout/_network_selector_item.html.eex index 11f3c83dfe..af6d8df375 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/layout/_network_selector_item.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/layout/_network_selector_item.html.eex @@ -5,7 +5,7 @@ - .png');"> + .png');"> <%= @title %> diff --git a/apps/block_scout_web/priv/gettext/default.pot b/apps/block_scout_web/priv/gettext/default.pot index 7dca514693..1b22f7969c 100644 --- a/apps/block_scout_web/priv/gettext/default.pot +++ b/apps/block_scout_web/priv/gettext/default.pot @@ -1721,11 +1721,6 @@ msgstr "" msgid "Search network" msgstr "" -#, elixir-format -#: lib/block_scout_web/templates/layout/_network_selector.html.eex:51 -msgid "Show More Networks" -msgstr "" - #, elixir-format #: lib/block_scout_web/templates/layout/_network_selector.html.eex:22 msgid "Testnet"