simple_form_datetimepicker 0.0.8 → 0.0.9

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: 905cc7870041bb996d7df59d295d8be1feabe45a
4
- data.tar.gz: 70817c7e3e2dfe7ef3d587272b8875e3f27070f0
3
+ metadata.gz: 22e582627bbbcc1237c0db42c83346004bcf3fa5
4
+ data.tar.gz: 39879252768552d8f3ce1d625e8d8b4ee85de9af
5
5
  SHA512:
6
- metadata.gz: 73b818c05df1162ac27fc77b3395ea50013aaf8d0cc0692d7e95c60f7b86d0cc114f8f592fcb6bfad7b31556f48820c76e4e62cc7f00c4ebe3594214eacb3d51
7
- data.tar.gz: 1eb891a58c1edf2313adec724933f92da675c1327e2f99f9d7638ccc04109eab9a8392cbb495c4213f7dcfbdf20bb0c2a6958c4d3f92fd6b61308ba16d927e9d
6
+ metadata.gz: 3c92057e5ff82575a6b13f01ff849aeff4e00fd0af455182c91a4320c7e0880510b7c2d810e6d18b964e040211585cad8dce39ee82c36f2982547dd5b35035c7
7
+ data.tar.gz: 015b71126acf6bbacc3948b46a55e6bec8b31f450d362f36ffb81931060ebabfeace71c5be52ac18ca29e22322a2e99fe8518b4806b3e4789d85890e628268cd
@@ -1,3 +1,3 @@
1
1
  module SimpleFormDatetimepicker
2
- VERSION = "0.0.8"
2
+ VERSION = '0.0.9'
3
3
  end
@@ -1176,7 +1176,12 @@
1176
1176
  $.fn.datetimepicker = function (options) {
1177
1177
  return this.each(function () {
1178
1178
  var $this = $(this), data = $this.data('DateTimePicker');
1179
- if (!data) $this.data('DateTimePicker', new DateTimePicker(this, options));
1179
+ if (!data) {
1180
+ var dtp_data_options = $this.data('dtp-options');
1181
+ if (dtp_data_options !== undefined)
1182
+ $.extend(true, options, dtp_data_options);
1183
+ $this.data('DateTimePicker', new DateTimePicker(this, options));
1184
+ }
1180
1185
  });
1181
1186
  };
1182
1187
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_datetimepicker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - smit1625
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-11 00:00:00.000000000 Z
11
+ date: 2015-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -117,9 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  requirements: []
119
119
  rubyforge_project:
120
- rubygems_version: 2.2.2
120
+ rubygems_version: 2.4.8
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Uses bootstrap-datetimepicker to enhance SimpleForm's default datetime input
124
124
  test_files: []
125
- has_rdoc: