diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-11-30 19:29:47 -0800 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-11-30 19:29:47 -0800 |
commit | 541fe9b110fce15c42ba15df27926552c234afd0 (patch) | |
tree | f4c0a74cb87d4d40ca44e99f1825fa9cd47edf96 /app/javascript/core/settings.js | |
parent | 8812bab6875024f76c59ab43d1dd3717e5e6da68 (diff) |
Skins support
Diffstat (limited to 'app/javascript/core/settings.js')
-rw-r--r-- | app/javascript/core/settings.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/javascript/core/settings.js b/app/javascript/core/settings.js index 7fb1d8e77..bc5f9ed1d 100644 --- a/app/javascript/core/settings.js +++ b/app/javascript/core/settings.js @@ -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(); +}); |