Skip to content

Rework of plugin#2

Open
Akkuma wants to merge 10 commits intoitsalif:masterfrom
Akkuma:master
Open

Rework of plugin#2
Akkuma wants to merge 10 commits intoitsalif:masterfrom
Akkuma:master

Conversation

@Akkuma
Copy link

@Akkuma Akkuma commented Feb 10, 2011

I've enhanced the plugin to use event delegation rather than directly binding, streamlined the code a bit more, added in hovering and label support

Akkuma added 10 commits January 25, 2011 09:16
…d options by removing separate checked and selected classes. Improved performance by using native operations as much as possible and checking if the input has already been initiated. DRY'd the code.
…lass onto the wrapping container when label or div is hovered. Made the data stored on each input more flexible by storing as an object. Made the delegates more specific.
… class to identify whether the label is for a radio or checkbox
…roperly handling the change event being fired through a programmatic input.click

Added a disabled class for additional styling control of both the label and input.

Moved default options outside of function to prevent creating the same defaults over and over.
@Akkuma
Copy link
Author

Akkuma commented Apr 22, 2011

I recommend anyone interested in this plugin to take a look at https://github.com/Akkuma/jquery-ui-checkable as this plugin looks "dead". It should offer you everything this plugin does and then some.

@scarfacedeb
Copy link

https://github.com/tomekwojcik/jQuery-Custom-Checkboxes also looks good enough. and it doesn't require jquery UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants