0
0
Fork 0

Skins support

This commit is contained in:
kibigo! 2017-11-30 19:29:47 -08:00
parent 8812bab687
commit 541fe9b110
22 changed files with 157 additions and 85 deletions

View file

@ -3,6 +3,8 @@
const { length } = require('stringz');
const { delegate } = require('rails-ujs');
import { processBio } from 'themes/glitch/util/bio_metadata';
delegate(document, '.account_display_name', 'input', ({ target }) => {
const nameCounter = document.querySelector('.name-counter');
@ -35,3 +37,7 @@ delegate(document, '#account_header', 'change', ({ target }) => {
header.style.backgroundImage = `url(${url})`;
});
delegate(document, '#user_setting_theme', 'change', ({ target }) => {
target.form.submit();
});