mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-17 19:06:40 +02:00
Merge pull request #8156 from baer/toggle-button-fix
Docs Customize toggle button used incorrect selectors
This commit is contained in:
@@ -63,10 +63,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'))
|
||||||
})
|
})
|
||||||
@@ -76,7 +76,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('')
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user