06/04 Optimize app
This commit is contained in:
@@ -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 %}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user