-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/relui: fix log viewing errors
Wait for DOMContentLoaded before trying to add listeners, as some of the data may not be in the dom yet when many workflows are visible. If the page has already loaded, register them immediately. Update eslint to require function expression declarations in javascript. Remove inline JavaScript from the workflow form. Registering event listeners in JavaScript instead of in HTML attributes is preferable for several reasons: - Separation of JavaScript logic from view - Avoids polluting the global namespace - Allows attaching multiple listeners to elements - Easier code re-use Updates golang/go#53382 Change-Id: I3dfefd1212482448eb2ff23aa77f89ead57823d8 Reviewed-on: https://go-review.googlesource.com/c/build/+/412678 Run-TryBot: Alex Rakoczy <alex@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
- Loading branch information
Showing
3 changed files
with
81 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters