foundation-datetimepicker-rails 0.1.3 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1722e28998412a68ec67309fd995b0035fe5da6
|
4
|
+
data.tar.gz: 6ac9fef4ce8890cd7c07e5ef544550e474687bba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 972290a3b7d66d8cb0edf457a19f405620d4e332e6b8993c89d9dbeb40e5f5f94cfd308ff7b6d47e93016d26dacb94e3120398c67468f542cb5d55494194be35
|
7
|
+
data.tar.gz: b61ab6b2ae32da362ce8243faa638f576ad969332f7dbdd7a06913b2d78d1adf5adbc61776768498be0bc9a4777ed982d9971e4387d55327cba0a5eb41787d80
|
data/README.md
CHANGED
@@ -18,6 +18,9 @@ Add the following line to your stylesheet file (`foundation_and_overrides.scss`)
|
|
18
18
|
@import 'foundation';
|
19
19
|
@import 'foundation-datetimepicker';
|
20
20
|
```
|
21
|
+
## Update
|
22
|
+
|
23
|
+
Support for Foundation5 and Foundation-Icons-3 has been added.
|
21
24
|
|
22
25
|
##Quick instructions
|
23
26
|
|
@@ -26,13 +29,24 @@ Call the datetimepicker via javascript:
|
|
26
29
|
$('.datetimepicker').fdatetimepicker()
|
27
30
|
|
28
31
|
|
29
|
-
|
32
|
+
### Language contribution
|
33
|
+
Current only support English(en) and Chinese(zh), please contribute code to `vendor/assets/javascripts/foundation-datetimepicker.js` on line `1242` to support more language.
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
### Language settings
|
38
|
+
Add a coffeescript file like below and require it to `application.js` to call datetimepicker with a specific language.
|
39
|
+
```coffee
|
40
|
+
$ ->
|
41
|
+
$('.datetimepicker').fdatetimepicker({
|
42
|
+
language: 'zh'
|
43
|
+
});
|
44
|
+
```
|
30
45
|
|
31
|
-
$('.datepicker').fdatepicker()
|
32
46
|
|
33
47
|
## Usage
|
34
48
|
|
35
|
-
See the excellent demo provided by plugin's author - [here](http://foundation-datepicker.peterbeno.com/example
|
49
|
+
See the excellent demo provided by plugin's author - [here](http://foundation-datepicker.peterbeno.com/example.html).
|
36
50
|
|
37
51
|
## Contributing to the original plugin
|
38
52
|
|
@@ -1248,7 +1248,19 @@
|
|
1248
1248
|
meridiem: ["am", "pm"],
|
1249
1249
|
suffix: ["st", "nd", "rd", "th"],
|
1250
1250
|
today: "Today"
|
1251
|
-
|
1251
|
+
|
1252
|
+
},
|
1253
|
+
|
1254
|
+
zh: {
|
1255
|
+
days: ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"],
|
1256
|
+
daysShort: ["日", "一", "二", "三", "四", "五", "六", "日"],
|
1257
|
+
daysMin: ["日", "一", "二", "三", "四", "五", "六", "日"],
|
1258
|
+
months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
1259
|
+
monthsShort: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"],
|
1260
|
+
meridiem: ["上午", "下午"],
|
1261
|
+
suffix: ["", "", "", ""],
|
1262
|
+
today: "今天"
|
1263
|
+
}
|
1252
1264
|
};
|
1253
1265
|
|
1254
1266
|
var DPGlobal = {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foundation-datetimepicker-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ali Ibrahim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This gem packages the foundation-datetimepicker (JavaScripts & stylesheets)
|
14
14
|
for Rails 3.1+ asset pipeline
|
@@ -33,17 +33,17 @@ require_paths:
|
|
33
33
|
- lib
|
34
34
|
required_ruby_version: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
|
-
- -
|
36
|
+
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: '0'
|
39
39
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '0'
|
44
44
|
requirements: []
|
45
45
|
rubyforge_project:
|
46
|
-
rubygems_version: 2.
|
46
|
+
rubygems_version: 2.4.3
|
47
47
|
signing_key:
|
48
48
|
specification_version: 4
|
49
49
|
summary: foundation-datetimepicker's JavaScripts & stylesheets for Rails 3.1+ asset
|