mirror of
https://github.com/seigler/govobject-proposal
synced 2025-07-26 22:36:09 +00:00
update proposal_name --> name
This commit is contained in:
parent
2fa354594a
commit
2e100f14f7
2 changed files with 5 additions and 6 deletions
|
@ -3531,9 +3531,9 @@ inherits(Proposal,GovObject);
|
|||
Proposal.prototype.dataHex = function() {
|
||||
var _govObj = {
|
||||
end_epoch: this.end_epoch,
|
||||
name: this._toASCII(this.name),
|
||||
payment_address: this.payment_address,
|
||||
payment_amount: this.payment_amount,
|
||||
proposal_name: this._toASCII(this.proposal_name),
|
||||
start_epoch: this.start_epoch,
|
||||
type: this.type,
|
||||
url: this.url
|
||||
|
@ -3544,9 +3544,9 @@ Proposal.prototype.dataHex = function() {
|
|||
|
||||
Proposal.prototype._newGovObject = function() {
|
||||
this.end_epoch = "";
|
||||
this.name = "";
|
||||
this.payment_address = "";
|
||||
this.payment_amount = "";
|
||||
this.proposal_name = "";
|
||||
this.start_epoch = "";
|
||||
this.type = "";
|
||||
this.url = "";
|
||||
|
|
|
@ -35,9 +35,8 @@
|
|||
|
||||
gov.end_epoch = document.getElementById('end_epoch').value || null;
|
||||
gov.payment_address = document.getElementById('payment_address').value;
|
||||
//gov.payment_amount = document.getElementById('payment_amount').value;
|
||||
gov.payment_amount = parseFloat(document.getElementById('payment_amount').value);
|
||||
gov.proposal_name = document.getElementById('proposal_name').value;
|
||||
gov.name = document.getElementById('name').value;
|
||||
gov.start_epoch = document.getElementById('start_epoch').value || null;
|
||||
gov.type = parseInt(document.getElementById('type').value);
|
||||
gov.url = document.getElementById('url').value;
|
||||
|
@ -94,8 +93,8 @@
|
|||
<input type="text" class="form-control" id="payment_amount" value="39.23" placeholder="39.23">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="proposal_name">proposal_name:</label>
|
||||
<input type="text" class="form-control" id="proposal_name" value="我想喝一點點無龍茶" placeholder="我想喝一點點無龍茶">
|
||||
<label for="name">name:</label>
|
||||
<input type="text" class="form-control" id="name" value="我想喝一點點無龍茶" placeholder="我想喝一點點無龍茶">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="start_epoch">start_epoch:</label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue