face_of_active_admin 0.0.9 → 0.0.10

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: f8fd2289b859c0aef230334d0d3f0f344477d817
4
- data.tar.gz: 3e98e79135f40e48b019518ebe726514ae5b0553
3
+ metadata.gz: 5c3c49f967997ec7208cb2533bdc99c5a81b2f37
4
+ data.tar.gz: 9e5e6be584c0063e621c049f1802844aaf72213d
5
5
  SHA512:
6
- metadata.gz: 303e656a76f669ac84aa156397f72deb4ae580ffdb01c8c85bb9ce3950239c0d18c5dff9b5f710a2d86811a61fa1c3b753f94aeb319f0a5a6891fd1da7107eea
7
- data.tar.gz: 6d8061f621cafc88c116df1753a3056cd9cad7c3459b55119689c84c8445988f03b2c856f99388746cfa038bff0492f611f658250aeb3fbdec673f9a458f65bb
6
+ metadata.gz: 088458cac16130cacc0d4d2a202e7c1582e8bc49304a2edfbacfed24694c00deed8574f0054b9489c9347113cda1a5e1fc9f8367a9bb24a124e8993cde64bf0c
7
+ data.tar.gz: f6c19b3b385368ac68f01ef4903d9554cf06b72153d335d739d52e318c005e84a10ccc9f621ecc034a0f95d0fa8e763cbae6e81ae48d538a5b6b225dc7058076
@@ -4,21 +4,17 @@ $(document).on 'ready page:load', ->
4
4
 
5
5
  # Only create datepickers in compatible browsers
6
6
  return if input[0].type is 'date'
7
- input.datepicker( "option", "dateFormat", "dd-mm-yy" );
7
+ console.log input
8
+ input.datepicker( "option", "dateFormat", "dd-mm-yy" )
8
9
  # defaults = dateFormat: 'dd-mm-yy'
9
10
  # options = input.data 'datepicker-options'
10
11
  # input.datepicker $.extend(defaults, options)
11
12
 
12
- datepickers = $('.datepicker')
13
- $.each datepickers, (_, date) ->
14
- date_attr = $(date).attr('value')
15
- return if date_attr == undefined
16
- if date_attr.length != 0
17
- year = date_attr.slice(0,4)
18
- month = date_attr.slice(5,7)
19
- day = date_attr.slice(8,10)
20
- date.value = (day+'-'+month+'-'+year)
21
-
13
+
14
+ $('.datepicker:not(.hasDatepicker)').each ->
15
+ if $(@).val().length > 0
16
+ p = $(@).val().split('-')
17
+ $(@).val("#{p[2]}-#{p[1]}-#{p[0]}")
22
18
 
23
19
  change_to_icon('.view_link', 'eye')
24
20
  change_to_icon('.delete_link', 'trash')
@@ -1,3 +1,3 @@
1
1
  module FaceOfActiveAdmin
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: face_of_active_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kvokka, Isaac Norman, Wojtek Krysiak, Patryk Zabielski