pickadate-rails 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
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.1.
|
3
|
+
## Pickadate Version: 3.1.2
|
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
|
|
@@ -50,14 +50,12 @@ Translations are available by loading them in your javascript/coffeescript file.
|
|
50
50
|
|
51
51
|
This project will use Semantic Versioning and follow Pickadate itself as much as possible in terms of major, minor, and patch level bumps. Version 1.0 of this gem starts with Pickadate version 3.0.3.
|
52
52
|
|
53
|
+
## Updating
|
53
54
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
59
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
60
|
-
5. Create new Pull Request
|
55
|
+
1. Run `rake pickadate:download`
|
56
|
+
2. Update `lib/pickadate-rails/version`
|
57
|
+
3. Update the version number in the Readme
|
58
|
+
4. Create a pull request
|
61
59
|
|
62
60
|
## License
|
63
61
|
Pickadate itself and this gem are under the MIT license.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
/*!
|
3
|
-
* Date picker for pickadate.js v3.1.
|
3
|
+
* Date picker for pickadate.js v3.1.2
|
4
4
|
* http://amsul.github.io/pickadate.js/date.htm
|
5
5
|
*/
|
6
6
|
|
@@ -331,11 +331,11 @@ DatePicker.prototype.validate = function( type, dateObject, options ) {
|
|
331
331
|
// [3] Out of range.
|
332
332
|
//
|
333
333
|
// Cases to **not** validate for:
|
334
|
+
// • Navigating months.
|
334
335
|
// • Not inverted and date enabled.
|
335
336
|
// • Inverted and all dates disabled.
|
336
|
-
// • Navigating months.
|
337
337
|
// • ..and anything else.
|
338
|
-
if (
|
338
|
+
if ( !options.nav ) if (
|
339
339
|
/* 1 */ ( !isInverted && calendar.disabled( dateObject ) ) ||
|
340
340
|
/* 2 */ ( isInverted && calendar.disabled( dateObject ) && ( hasEnabledWeekdays || hasEnabledBeforeTarget || hasEnabledAfterTarget ) ) ||
|
341
341
|
/* 3 */ ( dateObject.pick <= minLimitObject.pick || dateObject.pick >= maxLimitObject.pick )
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pickadate-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|