Boostrap switch cleanup
Checklist
-
I have read the Contribution & Best practices Guide. -
My branch is up-to-date with the upstream master
branch. -
The tests pass locally with my changes. -
I have added tests that prove my fix is effective or that my feature works(if appropriate).
Short description of what this resolves/which issues does this fix?:
- Repetitive arguments on boostrapSwitch instances
- bootstrapSwitch can only be set up on page load
Changes proposed in this pull request:
- DRY up the configuration using default values
- Set up an external function for setting up a bootstrapSwitch