From 2d1a501a9289157a63ed44af67abf6d3bce4874a Mon Sep 17 00:00:00 2001 From: Gabriel Rodriguez Alsina Date: Wed, 24 Apr 2019 16:30:46 -0300 Subject: [PATCH] (fix) transaction details raw input styles --- .../js/lib/transaction_input_dropdown.js | 2 + .../templates/transaction/overview.html.eex | 108 +++++++++--------- 2 files changed, 58 insertions(+), 52 deletions(-) diff --git a/apps/block_scout_web/assets/js/lib/transaction_input_dropdown.js b/apps/block_scout_web/assets/js/lib/transaction_input_dropdown.js index 2c8d21d7a4..dd74870a9e 100644 --- a/apps/block_scout_web/assets/js/lib/transaction_input_dropdown.js +++ b/apps/block_scout_web/assets/js/lib/transaction_input_dropdown.js @@ -1,6 +1,8 @@ import $ from 'jquery' $('.tx-input-dropdown').click(function (e) { + e.preventDefault() + var el = $(e.currentTarget) var target = $(el.attr('data-target')) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex index 64a0d1ad25..e59d6307b3 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex @@ -102,62 +102,66 @@ <% end %> - <%= unless value_transfer?(@transaction) do %> -
-
<%= gettext "Raw Input" %>
-
-
- - - - - -
-
<%= @transaction.input %>
+
+
<%= gettext "Raw Input" %>
+
+
+ + + + + + + + + +
-
- -
-
+ + <% end %>