From 4d5ac130ee4c5c077616a09605acda0342f4b3c2 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Mon, 24 Feb 2014 02:30:47 -0300 Subject: [PATCH] show only highlighted items. added a link to show all items. --- public/src/js/controllers/transactions.js | 2 +- public/views/transaction/tx.html | 24 +++++++++++++---------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/public/src/js/controllers/transactions.js b/public/src/js/controllers/transactions.js index 9dbf48b..5dc9bc5 100644 --- a/public/src/js/controllers/transactions.js +++ b/public/src/js/controllers/transactions.js @@ -158,7 +158,7 @@ function($scope, $rootScope, $routeParams, $location, Global, Transaction, Trans if ($routeParams.v_type == '>' || $routeParams.v_type == '<') { $scope.from_vin = $routeParams.v_type == '<' ? true : false; $scope.from_vout = $routeParams.v_type == '>' ? true : false; - $scope.v_index = $routeParams.v_index; + $scope.v_index = parseInt($routeParams.v_index) + 1; $scope.itemsExpanded = true; } diff --git a/public/views/transaction/tx.html b/public/views/transaction/tx.html index 9491078..ca2e867 100644 --- a/public/views/transaction/tx.html +++ b/public/views/transaction/tx.html @@ -51,8 +51,10 @@ -
-
+
+ only highlighted... + expand all... +

{{$root.currency.getConvertion(vin.value)}}

@@ -68,7 +70,7 @@
-
+
scriptSig {{vin.scriptSig.asm}} @@ -77,9 +79,9 @@
-
@@ -120,8 +122,10 @@
-
-
+
+ only highlighted... + expand all... +

{{$root.currency.getConvertion(vout.value)}} @@ -135,7 +139,7 @@

-
+

Type @@ -150,9 +154,9 @@

-