Browse Source

Added auto-select to the bitcoin address

tags/2.0.3
Teknikode 3 years ago
parent
commit
b0472d852f
2 changed files with 4 additions and 1 deletions
  1. 3
    0
      Teknik/Scripts/Common.js
  2. 1
    1
      Teknik/Views/Shared/_Footer.cshtml

+ 3
- 0
Teknik/Scripts/Common.js View File

@@ -87,6 +87,9 @@ $(function () {
$('[href="' + lastTab + '"]').tab('show');
}

// Auo-select bitcoin address
$('#bitcoin_address_footer').on('click', 'input[type=text]', function () { this.select(); });

$.appendAntiForgeryToken = function (data, token) {
// Converts data if not already a string.
if (data && typeof data !== "string") {

+ 1
- 1
Teknik/Views/Shared/_Footer.cshtml View File

@@ -22,7 +22,7 @@
<div class="form-group">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1"><i class="fa fa-bitcoin"></i></span>
<input type="text" class="form-control input-sm" name="bitcoin_address" value="@Model.Config.BitcoinAddress" readonly>
<input type="text" class="form-control input-sm" name="bitcoin_address_footer" id="bitcoin_address_footer" value="@Model.Config.BitcoinAddress" onClick="this.setSelectionRange(0, this.value.length)" readonly>
</div>
</div>
</form>

Loading…
Cancel
Save