active_admin_datetimepicker 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/active_admin_datetimepicker.gemspec +1 -0
- data/app/assets/javascripts/active_admin_datetimepicker.js.coffee +7 -1
- data/app/assets/stylesheets/active_admin_datetimepicker.scss +1 -1
- data/lib/active_admin_datetimepicker/base.rb +1 -1
- data/lib/active_admin_datetimepicker/inputs/filters/date_time_range_input.rb +1 -1
- data/lib/active_admin_datetimepicker/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5afe823cc693c2e0fceddd630a7d9f359d01253
|
4
|
+
data.tar.gz: 4f55d42a1fe14fb5c1771efa5c071a1f000dc955
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3c8a49bdad5d1a4937d67ccd0ae1e375204fa54786aefaecd8079f6ff51f6ab0d8c4ee1f2a4cc938dd612ed62ca4d1f2410e5ebfaeee5bfc877b03604fab5f1
|
7
|
+
data.tar.gz: 86b9545dec04c627a1684da2b450a4261c6cb96dede68698b433f2c6a22497e1d5b6f19de7e9f6bbe64ed96e9b78a2550f3676dc2a4e53f3eb88bc681f4e754c
|
data/Gemfile
CHANGED
@@ -7,7 +7,7 @@ group :test do
|
|
7
7
|
gem 'sprockets-rails', '2.3.3'
|
8
8
|
gem 'rails', "#{ENV['RAILS'] || default_rails_version}"
|
9
9
|
gem 'rspec-rails'
|
10
|
-
gem 'activeadmin',
|
10
|
+
gem 'activeadmin', '1.1.0'
|
11
11
|
gem 'coveralls', require: false # Test coverage website. Go to https://coveralls.io
|
12
12
|
gem 'sass-rails'
|
13
13
|
gem 'sqlite3'
|
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
22
|
spec.add_dependency "xdan-datetimepicker-rails", "~> 2.5.1"
|
23
|
+
spec.add_dependency "activeadmin", "~> 1.1.0"
|
23
24
|
spec.add_development_dependency "bundler", "~> 1.8"
|
24
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
25
26
|
|
@@ -14,7 +14,13 @@
|
|
14
14
|
options = $(entry).data 'datepicker-options'
|
15
15
|
$(entry).datetimepicker $.extend(defaults, options)
|
16
16
|
|
17
|
-
|
17
|
+
@initXdanDateTimePickerPlugin = () ->
|
18
18
|
setupDateTimePicker $('body')
|
19
19
|
$(document).on 'has_many_add:after', '.has_many_container', (e, fieldset) ->
|
20
20
|
setupDateTimePicker fieldset
|
21
|
+
|
22
|
+
$(document).ready ->
|
23
|
+
initXdanDateTimePickerPlugin()
|
24
|
+
|
25
|
+
$(document).on 'turbolinks:load', ->
|
26
|
+
initXdanDateTimePickerPlugin()
|
@@ -13,7 +13,7 @@ module ActiveAdminDatetimepicker
|
|
13
13
|
{}
|
14
14
|
end
|
15
15
|
|
16
|
-
def input_html_options(input_name = nil)
|
16
|
+
def input_html_options(input_name = nil, placeholder = nil)
|
17
17
|
options = {}
|
18
18
|
options[:class] = [self.options[:class], html_class].compact.join(' ')
|
19
19
|
options[:data] ||= input_html_data
|
@@ -5,7 +5,7 @@ module ActiveAdmin
|
|
5
5
|
include Base
|
6
6
|
include ActiveAdminDatetimepicker::Base
|
7
7
|
|
8
|
-
def input_html_options(input_name = gt_input_name)
|
8
|
+
def input_html_options(input_name = gt_input_name, placeholder = gt_input_placeholder)
|
9
9
|
super.tap do |options|
|
10
10
|
options[:class] = html_class
|
11
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_datetimepicker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Fedoronchuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xdan-datetimepicker-rails
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.5.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activeadmin
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.1.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.1.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
109
|
version: '0'
|
96
110
|
requirements: []
|
97
111
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.6.
|
112
|
+
rubygems_version: 2.6.13
|
99
113
|
signing_key:
|
100
114
|
specification_version: 4
|
101
115
|
summary: datetimepicker extension for ActiveAdmin
|