mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-18 05:30:21 -04:00
Refactor to not repeat lots of Jinja code
This commit is contained in:
@@ -9,7 +9,10 @@
|
||||
this.start = component => {
|
||||
|
||||
this.$input = $('input', component);
|
||||
this.$preview = $('.textbox-colour-preview', component);
|
||||
|
||||
$(component).append(
|
||||
this.$preview = $('<span class="textbox-colour-preview"></span>')
|
||||
);
|
||||
|
||||
this.$input
|
||||
.on('change keyup', this.update)
|
||||
|
||||
Reference in New Issue
Block a user