pickadate-rails 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/pickadate-rails/version.rb +1 -1
- data/vendor/assets/javascripts/pickadate/picker.date.js +7 -2
- data/vendor/assets/javascripts/pickadate/picker.js +1 -1
- data/vendor/assets/javascripts/pickadate/picker.time.js +1 -1
- data/vendor/assets/javascripts/pickadate/translations/no_NO.js +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8263d2bf4b7a6916904ed084bd1027456ca3b7c
|
4
|
+
data.tar.gz: 91f32767b809be5bcb1b32192d0f29fd2359e396
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4dd092bbc5664a33fac5d58d9fed682c8ecefb6f6a0bf2e4be13e45ead525bbe3f59ccab839e88cb8d85b4a1c0da6d5eac791a4b0cf3d196edc5c413082ebdf
|
7
|
+
data.tar.gz: 95002448e6d96a4a5b7ca9610fd68ab1914a113bbb526ea322ab0f689d7fabc827036eaddbb45d7457fb61cd89351ad3f13224780a2e459f9207f3cbbeb821c0
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Pickadate-Rails
|
1
|
+
# Pickadate-Rails [![Gem Version](https://badge.fury.io/rb/pickadate-rails.png)](http://badge.fury.io/rb/pickadate-rails)
|
2
2
|
|
3
|
-
## Pickadate Version: 3.0.
|
3
|
+
## Pickadate Version: 3.0.5
|
4
4
|
|
5
5
|
Easily add [pickadate.js](https://github.com/amsul/pickadate.js) to your Rails 3.1+ application using the asset pipeline.
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
/*!
|
3
|
-
* Date picker for pickadate.js v3.0.
|
3
|
+
* Date picker for pickadate.js v3.0.5
|
4
4
|
* http://amsul.github.io/pickadate.js/date.htm
|
5
5
|
*/
|
6
6
|
|
@@ -458,7 +458,7 @@ DatePicker.prototype.parse = function( type, value, options ) {
|
|
458
458
|
DatePicker.prototype.formats = (function() {
|
459
459
|
|
460
460
|
// Return the length of the first word in a collection.
|
461
|
-
|
461
|
+
function getWordLengthFromCollection( string, collection, dateObject ) {
|
462
462
|
|
463
463
|
// Grab the first word from the string.
|
464
464
|
var word = string.match( /\w+/ )[ 0 ]
|
@@ -472,6 +472,11 @@ DatePicker.prototype.formats = (function() {
|
|
472
472
|
return word.length
|
473
473
|
}
|
474
474
|
|
475
|
+
// Get the length of the first word in a string.
|
476
|
+
function getFirstWordLength( string ) {
|
477
|
+
return string.match( /\w+/ )[ 0 ].length
|
478
|
+
}
|
479
|
+
|
475
480
|
return {
|
476
481
|
|
477
482
|
d: function( string, dateObject ) {
|
@@ -1,12 +1,12 @@
|
|
1
1
|
// Norwegian
|
2
2
|
|
3
3
|
$.extend( $.fn.pickadate.defaults, {
|
4
|
-
monthsFull: [ '
|
4
|
+
monthsFull: [ 'januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember' ],
|
5
5
|
monthsShort: [ 'jan', 'feb', 'mar', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des' ],
|
6
6
|
weekdaysFull: [ 'søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag' ],
|
7
7
|
weekdaysShort: [ 'søn','man','tir', 'ons', 'tor', 'fre', 'lør' ],
|
8
8
|
today: 'i dag',
|
9
|
-
clear: '
|
9
|
+
clear: 'nullstill',
|
10
10
|
firstDay: 1,
|
11
11
|
format: 'dd. mmm. yyyy',
|
12
12
|
formatSubmit: 'yyyy/mm/dd'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pickadate-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Fraser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|