Skip to content

Commit

Permalink
more form inputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarrett committed Dec 17, 2023
1 parent 127821a commit f222db2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
9 changes: 8 additions & 1 deletion assets/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@

// recordTitle
const recTitle = document.getElementById(`recordTitle`);
recTitle.addEventListener(`input`, function (event) {});
recTitle.addEventListener(`input`, function (event) {
recTitle.value = recTitle.value.trimStart();
if (recTitle.value == ``) {
recTitle.classList.add(danger);
return;
}
recTitle.classList.remove(danger);
});

// releasers
const releasers = document.getElementById(`recordReleasers`);
Expand Down
1 change: 0 additions & 1 deletion model/update_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ func UpdateOnline(c echo.Context, id int64) error {
if err != nil {
return err
}
// deletedat="",deletedby=""
f.Deletedat = null.TimeFromPtr(nil)
f.Deletedby = null.String{}
if _, err = f.Update(ctx, db, boil.Infer()); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion public/js/editor.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f222db2

Please sign in to comment.