Commit 7f8703ef authored by Eric Baer's avatar Eric Baer
Browse files

Docs Customize toggle button used incorrect selectors

parent 45c5b4e4
Showing with 3 additions and 3 deletions
+3 -3
...@@ -71,10 +71,10 @@ ...@@ -71,10 +71,10 @@
// javascript build logic // javascript build logic
var inputsComponent = $("#less input") var inputsComponent = $("#less input")
, inputsPlugin = $("#plugins input") , inputsPlugin = $("#plugins input")
, inputsVariables = $("#variables input") , inputsVariables = $("#less-variables input")
// toggle all plugin checkboxes // toggle all plugin checkboxes
$('#components .toggle').on('click', function (e) { $('#less .toggle').on('click', function (e) {
e.preventDefault() e.preventDefault()
inputsComponent.prop('checked', !inputsComponent.is(':checked')) inputsComponent.prop('checked', !inputsComponent.is(':checked'))
}) })
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
inputsPlugin.prop('checked', !inputsPlugin.is(':checked')) inputsPlugin.prop('checked', !inputsPlugin.is(':checked'))
}) })
$('#variables .toggle').on('click', function (e) { $('#less-variables .toggle').on('click', function (e) {
e.preventDefault() e.preventDefault()
inputsVariables.val('') inputsVariables.val('')
}) })
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment