Skip to content

Commit

Permalink
fix older IE error
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Sep 17, 2014
1 parent f149337 commit 2dae99d
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 27 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jquery.switcher v1.2.3
jquery.switcher v1.2.4
===============

Custom checkbox / radio button in jquery
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery.switcher",
"version": "1.2.3",
"version": "1.2.4",
"homepage": "http://djanix.github.io/jquery.switcher/",
"docs": "http://amsul.github.io/pickadate.js",
"authors": [
Expand Down
16 changes: 9 additions & 7 deletions dist/switcher.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions dist/switcher.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* jquery.switcher - 1.2.3
/* jquery.switcher - 1.2.4
* Copyright (c) 2014-09-03 Janic Beauchemin - https://github.com/djanix/ */

;(function ($, undefined) {
var pluginName = "switcher";

var defaults = {
class: "switcher",
className: "switcher",
selected: null,
language: "en",
disabled: null,
Expand Down Expand Up @@ -41,7 +41,7 @@
var self = this;
var $input = $(input);

$input.wrap('<div class="' + settings.class + ' ' + settings.style + '"></div>');
$input.wrap('<div class="' + settings.className + ' ' + settings.style + '"></div>');
$input.after(
'<div class="content clearfix">' +
'<div class="slider"></div>' +
Expand All @@ -50,7 +50,7 @@
'</div>'
);

this.container = $($input).parent('.' + settings.class)[0];
this.container = $($input).parent('.' + settings.className)[0];

self.setLanguage(settings.language);
self.setValue(settings.selected);
Expand Down Expand Up @@ -110,7 +110,7 @@
if ($input.attr('type') == 'radio') {
var name = $input.attr('name');
var $inputGroup = $('input[name="' + name + '"]');
var $containerGroup = $inputGroup.parent('.' + self.settings.class);
var $containerGroup = $inputGroup.parent('.' + self.settings.className);

if (val === true) {
$containerGroup.removeClass('is-active');
Expand Down
9 changes: 6 additions & 3 deletions dist/switcher.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions dist/switcher.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jquery.switcher",
"version": "1.2.3",
"description": "jquery.switcher v1.2.3\r ===============",
"version": "1.2.4",
"description": "jquery.switcher v1.2.4\r ===============",
"homepage": "https://github.com/djanix/jquery-switcher",
"author": "Janic Beauchemin (https://github.com/djanix/)",
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions switcher.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* jquery.switcher - 1.2.3
/* jquery.switcher - 1.2.4
* Copyright (c) 2014-09-03 Janic Beauchemin - https://github.com/djanix/ */

;(function ($, undefined) {
var pluginName = "switcher";

var defaults = {
class: "switcher",
className: "switcher",
selected: null,
language: "en",
disabled: null,
Expand Down Expand Up @@ -41,7 +41,7 @@
var self = this;
var $input = $(input);

$input.wrap('<div class="' + settings.class + ' ' + settings.style + '"></div>');
$input.wrap('<div class="' + settings.className + ' ' + settings.style + '"></div>');
$input.after(
'<div class="content clearfix">' +
'<div class="slider"></div>' +
Expand All @@ -50,7 +50,7 @@
'</div>'
);

this.container = $($input).parent('.' + settings.class)[0];
this.container = $($input).parent('.' + settings.className)[0];

self.setLanguage(settings.language);
self.setValue(settings.selected);
Expand Down Expand Up @@ -110,7 +110,7 @@
if ($input.attr('type') == 'radio') {
var name = $input.attr('name');
var $inputGroup = $('input[name="' + name + '"]');
var $containerGroup = $inputGroup.parent('.' + self.settings.class);
var $containerGroup = $inputGroup.parent('.' + self.settings.className);

if (val === true) {
$containerGroup.removeClass('is-active');
Expand Down

0 comments on commit 2dae99d

Please sign in to comment.