rails-bootstrap-material-design 0.5.10 → 0.5.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39fe8854485ed92b3141763acafcefd3316f7f50
4
- data.tar.gz: 3e86639bf27c03bcc79719aac300cfdc8bbe271c
3
+ metadata.gz: 39e5908daa142605475b679a5a0849f6512f53fc
4
+ data.tar.gz: f033db5d502591a3175149be8c4315ef34fc0910
5
5
  SHA512:
6
- metadata.gz: e7d18f4c71837c68b30fb9c5800b2970f7a632fbfe1bec64c1898b47daaa63d58a48e89ca20ce1662bde0bbcfac0d3961f0725bb22b7b6713c8a7e97fb11bf48
7
- data.tar.gz: 7a943308fa14ac1f76994caa2c28ca17733013379a6775354e6e5dfcbf08bf5efe8f2879e7681e097f6888ae8382db6fa32a13666f5312c6c55125bf46c89ffd
6
+ metadata.gz: da1439dac03f2c0536af5656cf63dded3d5b5f6bd7351da01d8ec2a473d322178edd7443d0cbc26ab12557264cc490da894d6f01672429ab6cb79c0fdc86c753
7
+ data.tar.gz: 3ab7c96c3fa4f007e61ab4ccf2eecbe2dec4799c8a9fb590b935ff5595823a3453ec8bc2cf793824ff1a0d6c051ef78d9c446384158adb18a6933a68f95f79af
data/README.md CHANGED
@@ -2,13 +2,8 @@
2
2
 
3
3
  ## Usage
4
4
 
5
- Add rails-assets source block to your `Gemfile`:
6
-
7
5
  ```ruby
8
- source "https://rails-assets.org" do
9
- gem "rails-assets-bootstrap-material-design"
10
- end
11
-
6
+ gem "rails-bootstrap-material-design"
12
7
  ```
13
8
 
14
9
  Then, import the asset using Sprockets’ `require` directive:
@@ -99,17 +99,33 @@
99
99
  },
100
100
  "checkbox": function(selector) {
101
101
  // Add fake-checkbox to material checkboxes
102
+ // var $input = $((selector) ? selector : this.options.checkboxElements)
103
+ // .filter(":notmdproc")
104
+ // .data("mdproc", true)
105
+ // .after("<span class='checkbox-material'><span class='check'></span></span>");
106
+
102
107
  var $input = $((selector) ? selector : this.options.checkboxElements)
103
108
  .filter(":notmdproc")
109
+ .filter(function(){ //added this filter to skip checkboxes that were already initialized
110
+ return $(this).parent().find(".check").length === 0;
111
+ })
104
112
  .data("mdproc", true)
105
113
  .after("<span class='checkbox-material'><span class='check'></span></span>");
106
114
 
107
115
  _toggleTypeFocus($input);
108
116
  },
109
117
  "togglebutton": function(selector) {
110
- // Add fake-checkbox to material checkboxes
118
+ // Add fake-toggle to material checkboxes
119
+ // var $input = $((selector) ? selector : this.options.togglebuttonElements)
120
+ // .filter(":notmdproc")
121
+ // .data("mdproc", true)
122
+ // .after("<span class='toggle'></span>");
123
+
111
124
  var $input = $((selector) ? selector : this.options.togglebuttonElements)
112
125
  .filter(":notmdproc")
126
+ .filter(function(){ //added this filter to skip toggles that were already initialized
127
+ return $(this).parent().find(".toggle").length === 0;
128
+ })
113
129
  .data("mdproc", true)
114
130
  .after("<span class='toggle'></span>");
115
131
 
@@ -1,3 +1,3 @@
1
1
  module RailsBootstrapMaterialDesign
2
- VERSION = "0.5.10"
2
+ VERSION = "0.5.10.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-bootstrap-material-design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
4
+ version: 0.5.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - enrian.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-08 00:00:00.000000000 Z
11
+ date: 2017-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler