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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c3c49f967997ec7208cb2533bdc99c5a81b2f37
|
4
|
+
data.tar.gz: 9e5e6be584c0063e621c049f1802844aaf72213d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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')
|