-
-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Migrated the JS from template form to real JS #9966
base: main
Are you sure you want to change the base?
fix: Migrated the JS from template form to real JS #9966
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9966 +/- ##
==========================================
+ Coverage 49.54% 49.68% +0.14%
==========================================
Files 67 71 +4
Lines 20650 20980 +330
Branches 4980 5025 +45
==========================================
+ Hits 10231 10424 +193
- Misses 9131 9264 +133
- Partials 1288 1292 +4 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you @MonalikaPatnaik !
@stephanegigandet could you pls merge this pull request. |
@stephanegigandet could you pls merge this? I don't know why the unit test check is failing in this PR:( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the tests results and saw that the new scripts are loaded on all pages, I think it would make more sense to load them only on the sign in page and user edit page.
@@ -411,6 +411,8 @@ <h3 class="title-5 text-medium">[% lang('footer_discover_the_project') %]</h3> | |||
<script src="[% static_subdomain %]/js/dist/display.js"></script> | |||
<script src="[% static_subdomain %]/js/dist/stikelem.js"></script> | |||
<script src="[% static_subdomain %]/js/dist/scrollNav.js"></script> | |||
<script src="[% static_subdomain %]/js/dist/togglepassword.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those 2 scripts are only needed on the sign-in and user page, can you load them only on those pages instead of all pages of the website?
Quality Gate passedIssues Measures |
|
||
<script> | ||
$(function() { | ||
|
||
$(document).ready( function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #9106
Migrated the code of togglepassword.tt.js and user_form.tt.js scripts to /html/js/ as static JS files.