card-mod-date 0.13.1 → 0.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/script/manifest.yml +5 -0
- data/assets/script/script_datepicker_config.js.coffee +26 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d0ac9c47f175f06b6dc0432dea8c00ffe3ba6aa869fe6024972083fb2fca33b
|
4
|
+
data.tar.gz: 498977ea113fef2b50bd97d8029a6b793fec8ec282d562c5c05b0e40e2b3e995
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be4fe9ecec1d68c994433e03168975e6ef73bdda102829dad49d0472991fbaff7314a65b2095b09fdd950da0e2fcca47d3b7500ef3ff69bd4eccb3ce3c3aaa16
|
7
|
+
data.tar.gz: 8e28f6325b0a6a195f169b5e2a90835259c9a945b93ad7786815fe5cda07ae925ab22f8c556ffacad873e25c534e19a0bdcfb43227cc81ac2233ebb7af17fd9b
|
@@ -0,0 +1,26 @@
|
|
1
|
+
decko.addEditor(
|
2
|
+
'.date-editor',
|
3
|
+
->
|
4
|
+
decko.initDatepicker($(this))
|
5
|
+
->
|
6
|
+
@val()
|
7
|
+
)
|
8
|
+
|
9
|
+
$.extend decko,
|
10
|
+
setDatepickerConfig: (string) ->
|
11
|
+
setter = ->
|
12
|
+
try
|
13
|
+
$.parseJSON string
|
14
|
+
catch
|
15
|
+
{}
|
16
|
+
decko.datepickerConfig = setter()
|
17
|
+
|
18
|
+
configDatepicker: () ->
|
19
|
+
conf = { format: "YY-MM-DD" }
|
20
|
+
hard_conf = {}
|
21
|
+
user_conf = if decko.datepickerConfig? then decko.datepickerConfig else {}
|
22
|
+
$.extend conf, user_conf, hard_conf
|
23
|
+
conf
|
24
|
+
|
25
|
+
initDatepicker: (input) ->
|
26
|
+
input.datetimepicker(decko.configDatepicker())
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-date
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.103.
|
21
|
+
version: 1.103.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.103.
|
28
|
+
version: 1.103.2
|
29
29
|
description: ''
|
30
30
|
email:
|
31
31
|
- info@decko.org
|
@@ -33,6 +33,8 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
+
- assets/script/manifest.yml
|
37
|
+
- assets/script/script_datepicker_config.js.coffee
|
36
38
|
- db/migrate_core_cards/20180509141814_add_datepicker.rb
|
37
39
|
- db/migrate_core_cards/20210509141814_remove_datepicker_script_card.rb
|
38
40
|
- file/mod_date_script_datepicker_machine_output/file.js
|