update proposal_name --> name

This commit is contained in:
snogcel 2016-09-19 21:31:06 -06:00
parent 2fa354594a
commit 2e100f14f7
2 changed files with 5 additions and 6 deletions

View file

@ -3531,9 +3531,9 @@ inherits(Proposal,GovObject);
Proposal.prototype.dataHex = function() { Proposal.prototype.dataHex = function() {
var _govObj = { var _govObj = {
end_epoch: this.end_epoch, end_epoch: this.end_epoch,
name: this._toASCII(this.name),
payment_address: this.payment_address, payment_address: this.payment_address,
payment_amount: this.payment_amount, payment_amount: this.payment_amount,
proposal_name: this._toASCII(this.proposal_name),
start_epoch: this.start_epoch, start_epoch: this.start_epoch,
type: this.type, type: this.type,
url: this.url url: this.url
@ -3544,9 +3544,9 @@ Proposal.prototype.dataHex = function() {
Proposal.prototype._newGovObject = function() { Proposal.prototype._newGovObject = function() {
this.end_epoch = ""; this.end_epoch = "";
this.name = "";
this.payment_address = ""; this.payment_address = "";
this.payment_amount = ""; this.payment_amount = "";
this.proposal_name = "";
this.start_epoch = ""; this.start_epoch = "";
this.type = ""; this.type = "";
this.url = ""; this.url = "";

View file

@ -35,9 +35,8 @@
gov.end_epoch = document.getElementById('end_epoch').value || null; gov.end_epoch = document.getElementById('end_epoch').value || null;
gov.payment_address = document.getElementById('payment_address').value; 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.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.start_epoch = document.getElementById('start_epoch').value || null;
gov.type = parseInt(document.getElementById('type').value); gov.type = parseInt(document.getElementById('type').value);
gov.url = document.getElementById('url').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"> <input type="text" class="form-control" id="payment_amount" value="39.23" placeholder="39.23">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="proposal_name">proposal_name:</label> <label for="name">name:</label>
<input type="text" class="form-control" id="proposal_name" value="我想喝一點點無龍茶" placeholder="我想喝一點點無龍茶"> <input type="text" class="form-control" id="name" value="我想喝一點點無龍茶" placeholder="我想喝一點點無龍茶">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="start_epoch">start_epoch:</label> <label for="start_epoch">start_epoch:</label>