{"id":15788467,"url":"https://github.com/ultcombo/ultbuttons","last_synced_at":"2025-05-07T08:45:45.660Z","repository":{"id":4661660,"uuid":"5807571","full_name":"UltCombo/UltButtons","owner":"UltCombo","description":"Improves jQuery UI Checkbox/Radio Buttons.","archived":false,"fork":false,"pushed_at":"2015-04-04T22:03:15.000Z","size":307,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T13:56:14.474Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UltCombo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-14T09:47:44.000Z","updated_at":"2017-08-11T05:15:29.000Z","dependencies_parsed_at":"2022-07-05T13:09:26.926Z","dependency_job_id":null,"html_url":"https://github.com/UltCombo/UltButtons","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltCombo%2FUltButtons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltCombo%2FUltButtons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltCombo%2FUltButtons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltCombo%2FUltButtons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UltCombo","download_url":"https://codeload.github.com/UltCombo/UltButtons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252846480,"owners_count":21813425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-04T22:00:27.522Z","updated_at":"2025-05-07T08:45:45.632Z","avatar_url":"https://github.com/UltCombo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATED\n\nAll shims, workarounds and p(r)olyfills have one ultimate goal, which is being deprecated. I'm happy to announce that we have finally achieved this goal. We encourage you to update to jQuery UI \u003e= 1.10.4 and discard this plugin.\n\nHowever, if you're stuck with an older version of jQuery UI, or really like the `disableSelection` feature, feel free to keep using this plugin. `:)`\n\n# UltButtons\n\nImproves jQuery UI Checkbox/Radio Buttons usability.\n\n## Features\n\n- ~~Fixes [#5518 Button: Incorrect state after double click in Firefox](http://bugs.jqueryui.com/ticket/5518)~~ - now fixed with my [PR #841](https://github.com/jquery/jquery-ui/pull/841),  milestone set to jQuery UI 1.10;\n- ~~Works around [Firefox bug #608180 Double/rapid clicking a checkbox label does not work as expected](https://bugzilla.mozilla.org/show_bug.cgi?id=608180), providing the expected result~~ - now fixed as of Firefox 24 or so;\n- ~~Fixes [#7665 Button: Radio button \u0026 checkboxes ignore mouseclicks for minor mouse movements](http://bugs.jqueryui.com/ticket/7665). Also, if you can spare some time, analyze and provide your support to my proposed definitive fix at [PR #854](https://github.com/jquery/jquery-ui/pull/854)!~~ now fixed by my [PR #1120](https://github.com/jquery/jquery-ui/pull/1120), landed on jQuery UI 1.10.4;\n- Turns UI checkbox/radio buttons's text unselectable, very close to an actual button (dragging the mouse to outside of the button may start a selection in some browsers);\n- Provides additional `$.fn.disableSelection()` and `$.fn.reenableSelection()` methods so you can undo the select-ability changes if you'd like or even apply these to any other elements in your page.\n\n## Support\n\nIE6+ and all modern desktop browsers - Firefox, Chrome, Opera, Safari.\n\n## Demo\n\nCheck out the [Project Page](http://ultcombo.github.com/UltButtons/)!\n\n## How to use\n\nInclude jQuery, jQuery UI and then ultbuttons.js, e.g.:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/trontastic/jquery-ui.css\" /\u003e\n\u003cscript src=\"//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"ultbuttons1.1.min.js\"\u003e\u003c/script\u003e\n```\n\nThen just make use of the now improved jQuery UI's `.button()`/`.buttonset()` widgets. `=]` Check out the jQuery UI button widget's [official documentation](http://jqueryui.com/button/#checkbox) if you're not sure how to use it.\n\n## Notes\n\n- UltButtons does not create any extra markup, instead, it works on top of the original jQuery UI `button`/`buttonset` methods.\n- The plugin also does not use any globals.\n- The plugin requires jQuery 1.7 at least, recommended is 1.8+.\n- Always attach your `change` handlers with jQuery, the plugin will not fire handlers natively attached nor attached through other libraries (e.g. Prototype). However, if you desperately need an workaround, see the discussion at [Issue #2](https://github.com/UltCombo/UltButtons/issues/2).\n\n## Changelog\n\n### 1.1\n\n- **Core**\n    - UltButtons now extend the jQuery UI Button widget prototype's `_create` and `_destroy` methods, meaning you can now call `.button()`/`.buttonset()` on elements after including the ultbuttons script and all accessibility improvements will be applied automatically. This deprecates the `$.fn.ultButton` and `$.fn.ultButtonset` methods which now serve as aliases to their counterpart `$.fn.button` and `$.fn.buttonset` methods (for back-compat only);\n    - Added the `$.fn.reenableSelection()` method which is used in the UI button prototype's `_destroy` method;\n    - Removed the `$.UltC` namespace.\u003cbr\u003e\u003cbr\u003e\n\n- **disableSelection**\n    - Fixed userSelect for Firefox and Chrome when using jQuery 1.7;\n    - Fixed unselectable property for nested elements inside buttons in Opera.\u003cbr\u003e\u003cbr\u003e\n\n- **Unobstrusiveness**\n    - No longer utilizes `.data()` to store checked state;\n    - No longer attaches permanent handlers to `document`.\n\n### 1.0.1\n\n- Micro-optimizations.\n\n### 1.0\n\n- Initial release.\n\n## License\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultcombo%2Fultbuttons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fultcombo%2Fultbuttons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultcombo%2Fultbuttons/lists"}