mirror of
https://github.com/seigler/govobject-proposal
synced 2025-07-26 22:36:09 +00:00
updated proposal validation
This commit is contained in:
parent
17fbcebf4f
commit
7a14297cde
2 changed files with 26256 additions and 25923 deletions
52173
bitcore-lib-dash.js
52173
bitcore-lib-dash.js
File diff suppressed because it is too large
Load diff
|
@ -27,7 +27,7 @@ ProposalGenerator.prototype.validate = function() {
|
|||
case 'Invalid Name':
|
||||
console.log("error: invalid name");
|
||||
$('#name').addClass('validationError');
|
||||
$('#name').val("Invalid name. Please enter a name without spaces and weird characters. E.g. can use a '-' or '_' instead of a space.");
|
||||
$('#name').val("Invalid name. Please enter a 40 character alphanumeric name without spaces.");
|
||||
break;
|
||||
|
||||
case 'Invalid URL':
|
||||
|
@ -39,7 +39,7 @@ ProposalGenerator.prototype.validate = function() {
|
|||
case 'Invalid Payment Amount':
|
||||
console.log("Error: invalid payment amount");
|
||||
$('#payment_amount').addClass('validationError');
|
||||
$('#payment_amount').val("Invalid payment amount. Please enter a number from 1 - 7500");
|
||||
// $('#payment_amount').val("Invalid payment amount.");
|
||||
break;
|
||||
|
||||
case 'Invalid Timespan':
|
||||
|
@ -60,7 +60,7 @@ ProposalGenerator.prototype.validate = function() {
|
|||
case 'Invalid Address':
|
||||
console.log("Error: invalid address");
|
||||
$('#payment_address').addClass('validationError');
|
||||
$('#payment_address').val("Invalid Dash Address. Please just copy & paste from wallet.");
|
||||
$('#payment_address').val("Invalid payment address.");
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue