From 2dfc8d0eff9ea84899e6b8f13534c103e6d286ff Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Mon, 19 Jun 2017 17:01:18 +0100 Subject: [PATCH] fixed typo in selector :see_no_evil: --- app/assets/javascripts/experimental_flags.js | 2 +- app/views/profiles/preferences/show.html.haml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/experimental_flags.js b/app/assets/javascripts/experimental_flags.js index 5564df25159..dbd3843cef7 100644 --- a/app/assets/javascripts/experimental_flags.js +++ b/app/assets/javascripts/experimental_flags.js @@ -1,7 +1,7 @@ import Cookies from 'js-cookie'; export default () => { - $('.js-expirement-feature-toggle').on('change', (e) => { + $('.js-experiment-feature-toggle').on('change', (e) => { const el = e.target; Cookies.set(el.name, el.value, { diff --git a/app/views/profiles/preferences/show.html.haml b/app/views/profiles/preferences/show.html.haml index 8a6dc4a12a8..e25d36222f7 100644 --- a/app/views/profiles/preferences/show.html.haml +++ b/app/views/profiles/preferences/show.html.haml @@ -27,11 +27,11 @@ .col-lg-9.syntax-theme = label_tag do .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 = label_tag do .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 .col-sm-12 %hr -- GitLab