paypro: more cleaning up of form.

This commit is contained in:
Christopher Jeffrey 2014-08-01 20:00:14 -07:00 committed by Manuel Araoz
commit 4dd725aa48
2 changed files with 12 additions and 1 deletions

View file

@ -86,13 +86,16 @@ angular.module('copayApp.directives')
if (amount.attr('disabled') === true) {
amount.attr('disabled', false);
}
if (amount.attr('disabled') === false) {
if (submit.attr('disabled') === false) {
submit.attr('disabled', true);
}
sendto.html(sendto.html().replace(/<br><b>Server:.*$/, ''));
if (!/hidden/.test(tamount.attr('class'))) {
tamount.attr(tamount.attr('class') + ' hidden');
}
if (~tamount.html().indexOf('(CA: ')) {
tamount.html('');
}
if (submit.attr('disabled') === false) {
submit.attr('disabled', true);
}