From 896d6092100f17412b7bcd157c483f84dec02a8d Mon Sep 17 00:00:00 2001 From: Rubens Mariuzzo Date: Thu, 20 Feb 2014 16:01:46 -0400 Subject: [PATCH] v1.0.3 --- bower.json | 2 +- build/jquery.checkboxes.min.js | 2 +- package.json | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index 5089515..9f4ffbe 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "checkboxes.js", - "version": "1.0.2", + "version": "1.0.3", "homepage": "http://rmariuzzo.github.io/checkboxes.js/", "authors": [ "Rubens Mariuzzo " diff --git a/build/jquery.checkboxes.min.js b/build/jquery.checkboxes.min.js index fc762f8..956b6c3 100644 --- a/build/jquery.checkboxes.min.js +++ b/build/jquery.checkboxes.min.js @@ -1,2 +1,2 @@ -/*! checkboxes.js 1.0.2 | Rubens Mariuzzo (http://mariuzzo.com/) | 2013-09-19 | MIT */ +/*! checkboxes.js 1.0.3 | Rubens Mariuzzo (http://mariuzzo.com/) | 2014-02-20 | MIT */ !function(a){var b=function(a){this.$context=a};b.prototype.check=function(){this.$context.find(":checkbox").filter(":not(:disabled)").prop("checked",!0)},b.prototype.uncheck=function(){this.$context.find(":checkbox").filter(":not(:disabled)").prop("checked",!1)},b.prototype.toggle=function(){this.$context.find(":checkbox").filter(":not(:disabled)").each(function(){var b=a(this);b.prop("checked",!b.is(":checked"))})},b.prototype.max=function(a){if(0===a)this.$context.off("click.checkboxes");else if(a>0){var b=this;this.$context.on("click.checkboxes.max",":checkbox",function(){b.$context.find(":checked").length===a?b.$context.find(":checkbox:not(:checked)").prop("disabled",!0):b.$context.find(":checkbox:not(:checked)").prop("disabled",!1)})}},b.prototype.range=function(b){if(b){var c=this;this.$context.on("click.checkboxes.range",":checkbox",function(b){var d=a(b.target);if(b.shiftKey&&c.$last){var e=c.$context.find(":checkbox"),f=e.index(c.$last),g=e.index(d),h=Math.min(f,g),i=Math.max(f,g)+1;e.slice(h,i).filter(":not(:disabled)").prop("checked",d.prop("checked"))}c.$last=d})}else this.$context.off("click.checkboxes.range")};var c=a.fn.checkboxes;a.fn.checkboxes=function(c){var d=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=a(this),f=e.data("checkboxes");f||e.data("checkboxes",f=new b(e,"object"==typeof c&&c)),"string"==typeof c&&f[c]&&f[c].apply(f,d)})},a.fn.checkboxes.Constructor=b,a.fn.checkboxes.noConflict=function(){return a.fn.checkboxes=c,this},a(document).on("click.checkboxes.data-api","[data-toggle^=checkboxes]",function(b){var c=a(b.target),d=c.attr("href"),e=a(c.data("context")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=c.data("action");e&&f&&(b.preventDefault(),e.checkboxes(f))}),a(document).on("ready.checkboxes.data-api",function(){a("[data-toggle^=checkboxes]").each(function(){var b=a(this),c=b.data();delete c.toggle;for(var d in c)b.checkboxes(d,c[d])})})}(window.jQuery); \ No newline at end of file diff --git a/package.json b/package.json index e224b54..568d026 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,14 @@ { "name": "checkboxes.js", - "version": "1.0.2", + "version": "1.0.3", "homepage": "https://github.com/rmariuzzo/checkboxes.js", "keywords": "checkbox checkboxes", "license": "MIT", "author": "Rubens Mariuzzo (http://mariuzzo.com/)", + "repository": { + "type": "git", + "url": "https://github.com/rmariuzzo/checkboxes.js.git" + }, "devDependencies": { "grunt": "~0.4.1", "grunt-contrib-uglify": "~0.2.2",