Skip to content

Commit

Permalink
Remove more usages of Prototype (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Jul 24, 2023
1 parent d657d90 commit 54b1c2c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
</j:otherwise>
</j:choose>
<script><![CDATA[
var saveButton = makeButton($('save'), null);
var saveButton = makeButton(document.getElementById('save'), null);
function updateSave(form) {
function state() {
return ($('name').value.length === 0);
return (document.getElementById('name').value.length === 0);
}
saveButton.set('disabled', state(), false);
Expand Down

0 comments on commit 54b1c2c

Please sign in to comment.