06/04 Optimize app

This commit is contained in:
2026-06-04 16:51:52 -04:00
parent a8177fa24e
commit b4cb292afa
3 changed files with 3 additions and 3 deletions
+1 -2
View File
@@ -181,8 +181,6 @@ function openEditUser(u) {
openModal('modal-edit-user'); openModal('modal-edit-user');
} }
attachPasswordStrength('create-user-pw', 'create-user-pw-fill', 'create-user-pw-label');
document.querySelectorAll('.js-send-reset').forEach(function(btn) { document.querySelectorAll('.js-send-reset').forEach(function(btn) {
btn.addEventListener('click', function() { btn.addEventListener('click', function() {
var username = btn.dataset.username; var username = btn.dataset.username;
@@ -213,3 +211,4 @@ document.querySelectorAll('.js-send-reset').forEach(function(btn) {
}); });
</script> </script>
{% endblock %} {% endblock %}
{% block scripts %}<script>attachPasswordStrength('create-user-pw', 'create-user-pw-fill', 'create-user-pw-label');</script>{% endblock %}
+1
View File
@@ -87,5 +87,6 @@
</div> </div>
<script src="{{ url_for('static', filename='js/app.js') }}"></script> <script src="{{ url_for('static', filename='js/app.js') }}"></script>
{% block scripts %}{% endblock %}
</body> </body>
</html> </html>
+1 -1
View File
@@ -28,5 +28,5 @@
</form> </form>
</div> </div>
</div> </div>
<script>attachPasswordStrength('new-password', 'pw-fill', 'pw-label');</script>
{% endblock %} {% endblock %}
{% block scripts %}<script>attachPasswordStrength('new-password', 'pw-fill', 'pw-label');</script>{% endblock %}