git://git.furryclan.net
/
furrycat
/
race-o-matic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
561bcc4
)
Don't disable the Add button below the HR.
author
CMDR furrycat
<elite@furrycat.net>
Tue, 26 Jan 2016 11:14:14 +0000
(06:14 -0500)
committer
CMDR furrycat
<elite@furrycat.net>
Tue, 26 Jan 2016 11:14:14 +0000
(06:14 -0500)
entry.js
patch
|
blob
|
history
diff --git
a/entry.js
b/entry.js
index
568c40a
..
a2a1026
100644
(file)
--- a/
entry.js
+++ b/
entry.js
@@
-618,8
+618,11
@@
function validate(table, cloned) {
}
}
- var submits = document.getElementsByName('add_entry');
- if (submits.length) submits[0].disabled = ! valid;
+ /* Disable actual submit button, not the initial prep button. */
+ for (var submit of document.getElementsByName('add_entry')) {
+ if (submit.value.match(/^\d+$/)) continue;
+ submit.disabled = ! valid;
+ }
}
/* A cell was changed. */