mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 15:14:49 +01:00
fix subtract fees auto tick when clicking on balance
This commit is contained in:
@@ -38,7 +38,10 @@ $(function () {
|
||||
var parentContainer = $(this).parents(".form-group");
|
||||
var outputAmountElement = parentContainer.find(".output-amount");
|
||||
outputAmountElement.val(val);
|
||||
parentContainer.find(".subtract-fees").prop('checked', true);
|
||||
var subtractFeesEl = parentContainer.find(".subtract-fees");
|
||||
if(subtractFeesEl.length === 0)
|
||||
subtractFeesEl = $(".subtract-fees");
|
||||
subtractFeesEl.prop('checked', true);
|
||||
updateFiatValue(outputAmountElement);
|
||||
return false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user