Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Just removed some trailing whitespace #5

Open
wants to merge 1 commit into from

1 participant

Albertas Agejevas
Albertas Agejevas

Not a big deal, but annoying when your editor highlights trailing whitespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 23, 2012
Albertas Agejevas alga Removed trailing whitespace. 9dc3d0c
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 26 additions and 26 deletions. Show diff stats Hide diff stats

  1. +26 26 js/jquery.ezmark.js
52 js/jquery.ezmark.js
... ... @@ -1,31 +1,31 @@
1 1 /**
2   - * ezMark - A Simple Checkbox and Radio button Styling plugin.
  2 + * ezMark - A Simple Checkbox and Radio button Styling plugin.
3 3 * This plugin allows you to use a custom Image for Checkbox or Radio button. Its very simple, small and easy to use.
4   - *
  4 + *
5 5 * Copyright (c) Abdullah Rubiyath <http://www.itsalif.info/>.
6 6 * Released under MIT License
7   - *
  7 + *
8 8 * Files with this plugin:
9 9 * - jquery.ezmark.js
10 10 * - ezmark.css
11   - *
  11 + *
12 12 * <usage>
13 13 * At first, include both the css and js file at the top
14   - *
15   - * Then, simply use:
  14 + *
  15 + * Then, simply use:
16 16 * $('selector').ezMark([options]);
17   - *
  17 + *
18 18 * [options] accepts following JSON properties:
19 19 * checkboxCls - custom Checkbox Class
20 20 * checkedCls - checkbox Checked State's Class
21 21 * radioCls - custom radiobutton Class
22 22 * selectedCls - radiobutton's Selected State's Class
23   - *
  23 + *
24 24 * </usage>
25   - *
  25 + *
26 26 * View Documention/Demo here:
27 27 * http://www.itsalif.info/content/ezmark-jquery-checkbox-radiobutton-plugin
28   - *
  28 + *
29 29 * @author Abdullah Rubiyath
30 30 * @version 1.0
31 31 * @date June 27, 2010
@@ -33,10 +33,10 @@
33 33
34 34 (function($) {
35 35 $.fn.ezMark = function(options) {
36   - options = options || {};
37   - var defaultOpt = {
38   - checkboxCls : options.checkboxCls || 'ez-checkbox' , radioCls : options.radioCls || 'ez-radio' ,
39   - checkedCls : options.checkedCls || 'ez-checked' , selectedCls : options.selectedCls || 'ez-selected' ,
  36 + options = options || {};
  37 + var defaultOpt = {
  38 + checkboxCls : options.checkboxCls || 'ez-checkbox' , radioCls : options.radioCls || 'ez-radio' ,
  39 + checkedCls : options.checkedCls || 'ez-checked' , selectedCls : options.selectedCls || 'ez-selected' ,
40 40 hideCls : 'ez-hide'
41 41 };
42 42 return this.each(function() {
@@ -45,32 +45,32 @@
45 45 // for checkbox
46 46 if( $this.attr('type') == 'checkbox') {
47 47 $this.addClass(defaultOpt.hideCls).wrap(wrapTag).change(function() {
48   - if( $(this).is(':checked') ) {
49   - $(this).parent().addClass(defaultOpt.checkedCls);
50   - }
  48 + if( $(this).is(':checked') ) {
  49 + $(this).parent().addClass(defaultOpt.checkedCls);
  50 + }
51 51 else { $(this).parent().removeClass(defaultOpt.checkedCls); }
52 52 });
53   -
  53 +
54 54 if( $this.is(':checked') ) {
55   - $this.parent().addClass(defaultOpt.checkedCls);
  55 + $this.parent().addClass(defaultOpt.checkedCls);
56 56 }
57   - }
  57 + }
58 58 else if( $this.attr('type') == 'radio') {
59 59
60 60 $this.addClass(defaultOpt.hideCls).wrap(wrapTag).change(function() {
61 61 // radio button may contain groups! - so check for group
62 62 $('input[name="'+$(this).attr('name')+'"]').each(function() {
63   - if( $(this).is(':checked') ) {
64   - $(this).parent().addClass(defaultOpt.selectedCls);
  63 + if( $(this).is(':checked') ) {
  64 + $(this).parent().addClass(defaultOpt.selectedCls);
65 65 } else {
66   - $(this).parent().removeClass(defaultOpt.selectedCls);
  66 + $(this).parent().removeClass(defaultOpt.selectedCls);
67 67 }
68 68 });
69 69 });
70   -
  70 +
71 71 if( $this.is(':checked') ) {
72   - $this.parent().addClass(defaultOpt.selectedCls);
73   - }
  72 + $this.parent().addClass(defaultOpt.selectedCls);
  73 + }
74 74 }
75 75 });
76 76 }

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.