From af80b43cfefe98e8b4034b4e46a682b5efb34b0f Mon Sep 17 00:00:00 2001 From: Tomasz Date: Mon, 24 Apr 2017 10:43:34 +0200 Subject: [PATCH 01/19] Display button in bootstrap 4.0 There is no btn-default in Bootsrap 4.0 --- js/bootstrap-checkbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/bootstrap-checkbox.js b/js/bootstrap-checkbox.js index b2f25a0..08643fc 100644 --- a/js/bootstrap-checkbox.js +++ b/js/bootstrap-checkbox.js @@ -285,8 +285,8 @@ baseCls: 'btn', groupCls: null, cls: null, - offCls: 'btn-default', - onCls: 'btn-default', + offCls: 'btn-secondary', + onCls: 'btn-secondary', offActiveCls: 'btn-danger', onActiveCls: 'btn-success', offLabel: 'No', From 9c2b9ed8840577e40a00bb872bc30b5deaa70efb Mon Sep 17 00:00:00 2001 From: Tomasz Date: Mon, 24 Apr 2017 10:45:16 +0200 Subject: [PATCH 02/19] Project titl change --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b74ffc0..bac5c10 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [Bootstrap-checkbox](https://vsn4ik.github.io/bootstrap-checkbox/) +# [Bootstrap4-checkbox] based on (https://vsn4ik.github.io/bootstrap-checkbox/) [![Bower version](https://img.shields.io/bower/v/bootstrap-checkbox.svg)](https://github.com/vsn4ik/bootstrap-checkbox) [![npm version](https://img.shields.io/npm/v/bootstrap-checkbox.svg)](https://www.npmjs.com/package/bootstrap-checkbox) From 21482d9554e289eaa0b03f9073bf33a09658f19b Mon Sep 17 00:00:00 2001 From: Tomasz Date: Mon, 24 Apr 2017 10:49:35 +0200 Subject: [PATCH 03/19] Min Requirements to bootstrap v4.0.0-alpha.6 --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bac5c10..80f8b2f 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,7 @@ Several quick start options are available: -* [Download the latest release](https://github.com/vsn4ik/bootstrap-checkbox/archive/v1.4.0.zip "Download Bootstrap-checkbox"). -* Clone the repo: `git clone https://github.com/vsn4ik/bootstrap-checkbox.git`. -* Install with [Bower](https://bower.io): `bower install bootstrap-checkbox`. -* Install with [npm](https://www.npmjs.com): `npm install bootstrap-checkbox`. -* Install with [Composer](https://getcomposer.org): `composer require vsn4ik/bootstrap-checkbox "dev-master"`. +* https://github.com/vsn4ik/bootstrap-checkbox/blob/master/README.md ### What's included @@ -36,7 +32,7 @@ For some working examples, visit our [examples](https://vsn4ik.github.io/bootstr ## Min Requirements -* Bootstrap 3.0.0 +* Bootstrap v4.0.0-alpha.6 * jQuery 1.9.1 From dc9370122e73e62305714814b1fcad1793f02125 Mon Sep 17 00:00:00 2001 From: Tomasz Date: Mon, 24 Apr 2017 10:52:59 +0200 Subject: [PATCH 04/19] Min dependency of jquery 3.0.0 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 80f8b2f..832561f 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ For some working examples, visit our [examples](https://vsn4ik.github.io/bootstr ## Min Requirements * Bootstrap v4.0.0-alpha.6 -* jQuery 1.9.1 +* jQuery 3.0.0 ## Creators From f4ac62cf8fe520299037db8dbb0d26cef369b2f9 Mon Sep 17 00:00:00 2001 From: Tomasz Date: Mon, 24 Apr 2017 10:55:32 +0200 Subject: [PATCH 05/19] Migration to bootstrap 4 hidden is remowed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As Bootstrap Migration information say: removed because they conflicted with jQuery’s --- js/bootstrap-checkbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/bootstrap-checkbox.js b/js/bootstrap-checkbox.js index 08643fc..94b237d 100644 --- a/js/bootstrap-checkbox.js +++ b/js/bootstrap-checkbox.js @@ -68,7 +68,7 @@ init: function() { var fn = this.options.html ? 'html' : 'text'; - this.$element.addClass('hidden'); + this.$element.hide(); this.$group.addClass(this.options.baseGroupCls).addClass(this.options.groupCls); this.$buttons.addClass(this.options.baseCls).addClass(this.options.cls); From 353c61bb1765894f1824a839f0fa3f3b65c450fc Mon Sep 17 00:00:00 2001 From: Tomasz Date: Mon, 24 Apr 2017 10:59:39 +0200 Subject: [PATCH 06/19] Added autor information --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 832561f..908627d 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,8 @@ For some working examples, visit our [examples](https://vsn4ik.github.io/bootstr ## Creators +**ONTP.NET** +* **Vasily A.** From 18e0c75f7795ce431d6cf0d8dae3f191892c67c1 Mon Sep 17 00:00:00 2001 From: Tomasz Date: Mon, 24 Apr 2017 11:00:51 +0200 Subject: [PATCH 07/19] remove file --- dist/js/bootstrap-checkbox.js | 321 ---------------------------------- 1 file changed, 321 deletions(-) delete mode 100644 dist/js/bootstrap-checkbox.js diff --git a/dist/js/bootstrap-checkbox.js b/dist/js/bootstrap-checkbox.js deleted file mode 100644 index a9e4bda..0000000 --- a/dist/js/bootstrap-checkbox.js +++ /dev/null @@ -1,321 +0,0 @@ -/*! - * Bootstrap-checkbox v1.4.0 (https://vsn4ik.github.io/bootstrap-checkbox/) - * Copyright 2013-2017 Vasily A. (https://github.com/vsn4ik) - * Licensed under the MIT license - */ - -/** - * $.inArray: friends with IE8. Use Array.prototype.indexOf in future. - * Use this.element.hidden in future. - * $.proxy: friends with IE8. Use Function.prototype.bind in future. - */ - -'use strict'; - -(function(factory) { - if (typeof define == 'function' && define.amd) { - // AMD. Register as an anonymous module - define(['jquery'], factory); - } - else if (typeof exports == 'object') { - // Node/CommonJS - module.exports = factory(require('jquery')); - } - else { - // Browser globals - factory(jQuery); - } -})(function($) { - function create() { - return $($.map(arguments, $.proxy(document, 'createElement'))); - } - - function Checkboxpicker(element, options) { - this.element = element; - this.$element = $(element); - - var data = this.$element.data(); - - // <... data-reverse> - if (data.reverse === '') { - data.reverse = true; - } - - // <... data-switch-always> - if (data.switchAlways === '') { - data.switchAlways = true; - } - - // <... data-html> - if (data.html === '') { - data.html = true; - } - - this.options = $.extend({}, $.fn.checkboxpicker.defaults, options, data); - - if (this.$element.closest('label').length) { - console.warn(this.options.warningMessage); - - return; - } - - this.$group = create('div'); - - // .btn-group-justified works with elements as the