simple_form_extension 1.4.5 → 1.4.6

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: 1bc4702ff35a135cc1c1edee65f105adfa8d2280
4
- data.tar.gz: 9dad68f004f12782e3a75ed7fa16e54a33b29b71
3
+ metadata.gz: 05bd0458464d5c686a94a23e4786edb71fd5bcff
4
+ data.tar.gz: d3510e286cbb66ba4aca5de9160c3eb7862ec5c6
5
5
  SHA512:
6
- metadata.gz: eee90d167eab2a47212a42e7cdf9bf7f6e912612f09a57263c15590661727cb349f290e57608c18319160f67cb1bc22745697b7500ca383705cd3721107dd479
7
- data.tar.gz: 3e74a498ec1fd53dbee724ead15764cff4d8b736cf64acbf256e52171a7393d70bf55271fadad329b53ad5a1bc55a8c0744268261c7fa72ec2b30b4e8b0db819
6
+ metadata.gz: 73716c243d7050dec75ebab88e86316233d722f07e65756a32a97bfdbed9024d21e2e14da04d6ef4cdfa4ac085dac03028032bad4741f152deec84b78a1278bb
7
+ data.tar.gz: 11395f602aea0d79887c06180f6487d21f515fbac12479ad6c3aecde3825f1900486ade9545cdf9e30725fbb092c27e7e807b5ef0e915707f9e01e4f2da55321
@@ -23,7 +23,7 @@ module SimpleFormExtension
23
23
  input_html_options[:data][:ticks] = options[:ticks].to_json
24
24
  end
25
25
 
26
- @builder.number_field(attribute_name, input_html_options)
26
+ @builder.hidden_field(attribute_name, input_html_options)
27
27
  end
28
28
  end
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleFormExtension
2
- VERSION = "1.4.5"
2
+ VERSION = "1.4.6"
3
3
  end
@@ -8,11 +8,11 @@ class Redactor
8
8
  'unorderedlist', 'orderedlist', 'outdent', 'indent',
9
9
  'image', 'file','link', 'alignment', 'horizontalrule']
10
10
  removeEmpty: ['strong', 'em', 'span', 'p', 'h1', 'h2', 'h3', 'h4', 'div']
11
- min_height: 250
11
+ minHeight: 250
12
12
  buttonSource: true
13
13
  replaceDivs: false
14
- linebreaks: false
15
14
  toolbarFixed: false
15
+ cleanStyleOnEnter: true
16
16
  formattingAdd: [
17
17
  {
18
18
  tag: 'img'
@@ -1,9 +1,12 @@
1
1
  class Slider
2
2
  constructor: (@$el) ->
3
+ values = @$el.data('slider-value').split(',')
4
+ value = if values.length <= 1 then value[0] else (parseInt(value, 10) for value in values)
5
+
3
6
  if @$el.bootstrapSlider
4
- @$el.bootstrapSlider()
7
+ @$el.bootstrapSlider(value: value)
5
8
  else
6
- @$el.slider()
9
+ @$el.slider(value: value)
7
10
 
8
11
  $.fn.simpleFormSlider = ->
9
12
  @each (i, el) ->
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glyph-fr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-09 00:00:00.000000000 Z
11
+ date: 2017-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 2.5.1
186
+ rubygems_version: 2.6.8
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: This gems adds custom common input types to simple form.