Skip to content

Commit c8c1af8

Browse files
author
Damir Sultanov
committed
iOS 13 support, fixes #424, fixes #419
1 parent 6f311ed commit c8c1af8

7 files changed

+29
-20
lines changed

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [1.0.3] - 2020-10-10
88

9+
### Added
10+
- iOS 13 support @markusbroman
11+
912
### Changed
10-
- Reformatted changelog
13+
- Reformatted changelog @lasseeee
1114

1215
### Fixed
1316
- Fire change event when toggled @rafatmyo

README.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [iCheck plugin](http://fronteed.com/iCheck/) <sup>[1.0.2](#march-03-2014)</sup>
1+
# [iCheck plugin](http://fronteed.com/iCheck/) <sup>[1.0.3](#october-10-2020)</sup>
22
#### Highly customizable checkboxes and radio buttons for jQuery and Zepto.
33

44
Refer to the [iCheck website](http://fronteed.com/iCheck/) for examples.
@@ -366,6 +366,12 @@ Mobile browsers (like Opera mini, Chrome mobile, Safari mobile, Android browser,
366366
Changelog
367367
---------------
368368

369+
## October 10, 2020
370+
371+
* iOS 13 support @markusbroman
372+
* Reformatted changelog @lasseeee
373+
* Fire change event when toggled @rafatmyo
374+
369375
### March 03, 2014
370376

371377
* Better HiDPI screens support @ddctd143
@@ -385,12 +391,12 @@ Changelog
385391
* Ability to switch off some of the callbacks when you don't need them (global or per input)
386392
* Inline styles dropped - iCheck won't add any inline styles to the elements until it's highly needed (`cursor` or `area` option)
387393
* Fast click support - removes a 300ms click delay on mobile devices without any dependencies (iCheck compatible with the `fastclick` plugin), see the `tap` option
388-
* Ability to ignore customization for the selected inputs using `init` option (if set to `false`)
394+
* Ability to ignore customization for the selected inputs using `init` option (if set to `false`)
389395
* Optimized event bindings - iCheck binds only a few global events for the all inputs (doesn't increase on elements addition), instead of a couple for the each customized element
390-
* Doesn't store tons of arbitrary data (event in jQuery or Zepto cache), defines customized elements by specific classnames
396+
* Doesn't store tons of arbitrary data (event in jQuery or Zepto cache), defines customized elements by specific classnames
391397
* Extra `ins` tag is dropped (less DOM modifications), iCheck wraps each input with a single `div` and doesn't use any extra markup for the any option
392-
* Optimized reflows and repaints on init and state changes
393-
* Better options handling - iCheck will never run a single line of JS to process an options that are off or empty
398+
* Optimized reflows and repaints on init and state changes
399+
* Better options handling - iCheck will never run a single line of JS to process an options that are off or empty
394400
* Ability to auto customize the ajax loaded inputs without using any extra code (`autoAjax` option, on by default)
395401
* Auto inits on domready using the specified selector (`autoInit` option) - searches for `.icheck` by default. Classnames can be changed using the `window.classes` object
396402
* Memory usage optimization - uses only a few amount of memory (works well on low-memory devices)

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iCheck",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Highly customizable checkboxes and radio buttons (jQuery & Zepto)",
55
"keywords": [
66
"icheck",

demo/index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
<title>Checkboxes and radio buttons customization (jQuery and Zepto) plugin</title>
55
<meta charset="utf-8">
66
<meta content="width=device-width" name="viewport">
7-
<link href="./css/custom.css?v=1.0.2" rel="stylesheet">
8-
<link href="../skins/all.css?v=1.0.2" rel="stylesheet">
7+
<link href="./css/custom.css?v=1.0.3" rel="stylesheet">
8+
<link href="../skins/all.css?v=1.0.3" rel="stylesheet">
99
<script src="./js/jquery.js"></script>
10-
<script src="../icheck.js?v=1.0.2"></script>
11-
<script src="./js/custom.min.js?v=1.0.2"></script>
10+
<script src="../icheck.js?v=1.0.3"></script>
11+
<script src="./js/custom.min.js?v=1.0.3"></script>
1212
</head>
1313
<body>
1414
<div class="layout clear">
1515
<div class="header">
1616
<h1>super customized checkboxes and radio buttons for jQuery &amp; Zepto</h1>
17-
<h3>iCheck <span>v1.0.2</span></h3>
17+
<h3>iCheck <span>v1.0.3</span></h3>
1818
<strong>@<a href="http://twitter.com/fronteed/">Fronteed</a></strong>
1919
</div>
2020
<div class="features">

icheck.jquery.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "icheck",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"title": "iCheck",
55
"author": {
66
"name": "Damir Sultanov",

icheck.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
_callback = 'trigger',
2929
_label = 'label',
3030
_cursor = 'cursor',
31-
_mobile = /ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);
31+
_mobile = /ip(hone|od|ad)|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
3232

3333
// Plugin init
3434
$.fn[_iCheck] = function(options, fire) {

icheck.min.js

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)