Make TXId & Address clickable on Transaction Lists

Added an alert box displaying full TXId and Address when clicked on Admin Transaction List
This commit is contained in:
nicoschtein 2013-12-27 03:49:45 -02:00
parent e5ffc85084
commit 9481eae316

View File

@ -101,8 +101,8 @@
{else if $TRANSACTIONS[transaction].confirmations == -1}<span class="orphan">Orphaned</span>
{else}<span class="unconfirmed">Unconfirmed</span>{/if}
</td>
<td>{$TRANSACTIONS[transaction].coin_address|truncate:20:"...":true:true}</td>
<td>{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</td>
<td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].coin_address|escape}')">{$TRANSACTIONS[transaction].coin_address|truncate:20:"...":true:true}</a></td>
<td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].txid|escape}')">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td>
<td>{if $TRANSACTIONS[transaction].height == 0}n/a{else}<a href="{$smarty.server.PHP_SELF}?page=statistics&action=round&height={$TRANSACTIONS[transaction].height}">{/if}{$TRANSACTIONS[transaction].height}</a></td>
<td><font color="{if $TRANSACTIONS[transaction].type == 'Credit' or $TRANSACTIONS[transaction].type == 'Credit_PPS' or $TRANSACTIONS[transaction].type == 'Bonus'}green{else}red{/if}">{$TRANSACTIONS[transaction].amount|number_format:"8"}</td>
</tr>