fixed typo in selector 🙈

This commit is contained in:
Phil Hughes 2017-06-19 17:01:18 +01:00
parent 6ab1c7d737
commit 2dfc8d0eff
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
export default () => { export default () => {
$('.js-expirement-feature-toggle').on('change', (e) => { $('.js-experiment-feature-toggle').on('change', (e) => {
const el = e.target; const el = e.target;
Cookies.set(el.name, el.value, { Cookies.set(el.name, el.value, {

View file

@ -27,11 +27,11 @@
.col-lg-9.syntax-theme .col-lg-9.syntax-theme
= label_tag do = label_tag do
.preview= image_tag "old_nav.png" .preview= image_tag "old_nav.png"
%input.js-expirement-feature-toggle{ type: "radio", value: "false", name: "new_nav", checked: !show_new_nav? } %input.js-experiment-feature-toggle{ type: "radio", value: "false", name: "new_nav", checked: !show_new_nav? }
Old Old
= label_tag do = label_tag do
.preview= image_tag "new_nav.png" .preview= image_tag "new_nav.png"
%input.js-expirement-feature-toggle{ type: "radio", value: "true", name: "new_nav", checked: show_new_nav? } %input.js-experiment-feature-toggle{ type: "radio", value: "true", name: "new_nav", checked: show_new_nav? }
New New
.col-sm-12 .col-sm-12
%hr %hr