Skip to content

Commit

Permalink
v1.0.3 - fix main file value, update readme with rails instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger committed Jul 30, 2016
1 parent 3d443f9 commit 2ba06e8
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ bower install chosen-readonly
npm install chosen-readonly
```

#### Rails
```ruby
# Gemfile
source 'https://rails-assets.org' do
gem 'rails-assets-chosen-readonly'
end


# app/assets/stylesheets/application.scss
/*
*= require chosen
*= require chosen-readonly
*/
```
# Usage
```javascript
/* Makes elements readonly if they already have the readonly attribute */
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "chosen-readonly",
"version": "1.0.2",
"description": "Readonly support for Chosen selects",
"main": "dist/chosen-readonly.js",
"main": "dist/chosen-readonly.min.js",
"directories": {
"test": "test"
},
Expand Down
6 changes: 3 additions & 3 deletions dist/chosen-readonly.min.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
/*
* chosen-readonly - Readonly support for Chosen selects
* @version v1.0.2
* @version v1.0.3
* @link http://github.com/westonganger/chosen-readonly
* @license GNU GPL
*/
!function(e){e.fn.chosenReadonly=function(d){this.on("chosen:updated",function(){var d=e(this);if(d.attr("readonly")){var t=d.is(":disabled");d.attr("disabled","disabled"),d.data("chosen").search_field_disabled(),t?d.attr("disabled","disabled"):d.removeAttr("disabled")}}),d?this.attr("readonly","readonly"):d===!1&&this.removeAttr("readonly"),this.trigger("chosen:updated")}}(jQuery);
!function(e){e.fn.chosenReadonly=function(d){this.on("chosen:updated",function(){var d=e(this);if(d.attr("readonly")){var t=d.is(":disabled");d.attr("disabled","disabled"),d.data("chosen").search_field_disabled(),t?d.attr("disabled","disabled"):d.removeAttr("disabled")}}),d?this.attr("readonly","readonly"):d===!1&&this.removeAttr("readonly"),this.trigger("chosen:updated")}}(jQuery);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "chosen-readonly",
"version": "1.0.2",
"description": "Readonly support for Chosen selects",
"main": "dist/chosen-readonly.js",
"main": "dist/chosen-readonly.min.js",
"directories": {
"test": "test"
},
Expand Down
4 changes: 2 additions & 2 deletions src/chosen-readonly.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
/*
* chosen-readonly - Readonly support for Chosen selects
* @version v1.0.2
* @version v1.0.3
* @link http://github.com/westonganger/chosen-readonly
* @license GNU GPL
*/
Expand Down

0 comments on commit 2ba06e8

Please sign in to comment.