Skip to content

Commit

Permalink
Upgrade to release v3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Feb 1, 2015
1 parent f899ea8 commit efe8a69
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 141 deletions.
3 changes: 2 additions & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
version 3.5.0
=============
**Date:** 14-Jan-2015
**Date:** 31-Jan-2015

1. (enh #39): Prevent invalid star rating for numStars > 5 with default value & hoverChange enabled.
2. (enh #42): Code cleanup and restructure for JS lint changes (using JSHint Code cleanup library).

version 3.4.0
=============
Expand Down
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ You can also manually install the plugin easily to your project. Just download t
Step 1: Load the following assets in your header.

```html
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<link href="path/to/css/star-rating.min.css" media="all" rel="stylesheet" type="text/css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="path/to/js/star-rating.min.js" type="text/javascript"></script>
Expand Down Expand Up @@ -108,30 +108,30 @@ Alternatively, you can directly call the plugin options by setting data attribut
### Plugin Options
The plugin supports these following options:

##### stars
#### stars
_int_ number of stars to display. Defaults to `5`.

##### glyphicon
#### glyphicon
_boolean_ whether to use the glyphicon star symbol. Defaults to `true`. If set to `false`,
will use the unicode black star symbol.

##### symbol
#### symbol
_string_ any custom star symbol or unicode character to display. This will override the
`glyphicon` settings above.

##### min
#### min
_float_ the minimum value for the rating input. Defaults to `1`.

##### max
#### max
_float_ the maximum value for the rating input. Defaults to `5`.

##### step
#### step
_float_ the step to increment the star rating. Defaults to `0.5`.

##### disabled
#### disabled
_boolean_ whether the input is disabled. Defaults to `false`.

##### readonly
#### readonly
_boolean_ whether the input is read only. Defaults to `false`.

#### rtl
Expand Down Expand Up @@ -362,9 +362,13 @@ $('#input-id').rating('destroy');
```

#### create
Re-creates the rating (after a destroy).
Creates the rating after destroying any existing rating plugin instance.
```js
// will re-create rating based on initial plugin options
$('#input-id').rating('create');

// any new plugin options if passed will be used instead of initial plugin options
$('#input-id').rating('create', {disabled: true});
```

## License
Expand Down
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8"/>
<title>Krajee JQuery Plugins - &copy; Kartik</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<link href="../css/star-rating.css" media="all" rel="stylesheet" type="text/css"/>
<script src="../js/star-rating.js" type="text/javascript"></script>
Expand Down
Loading

0 comments on commit efe8a69

Please sign in to comment.