Skip to content

Commit

Permalink
bump version 4.17.45
Browse files Browse the repository at this point in the history
  • Loading branch information
Eonasdan committed Jan 13, 2017
2 parents 853b9c8 + 5c9764a commit d8363de
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 17 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ module.exports = function (grunt) {
grunt.task.run([
'bump_version:' + version,
'build:travis',
'docs'
'docs',
'nugetpack'
]);
});
};
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eonasdan-bootstrap-datetimepicker",
"version": "4.17.45",
"version": "4.17.44",
"main": [
"build/css/bootstrap-datetimepicker.min.css",
"build/js/bootstrap-datetimepicker.min.js"
Expand Down
2 changes: 1 addition & 1 deletion build/css/bootstrap-datetimepicker.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Datetimepicker for Bootstrap 3
* version : 4.17.45
* version : 4.17.44
* https://github.com/Eonasdan/bootstrap-datetimepicker/
*/
.bootstrap-datetimepicker-widget {
Expand Down
2 changes: 1 addition & 1 deletion build/css/bootstrap-datetimepicker.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/js/bootstrap-datetimepicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-datetimepicker",
"version": "4.17.45",
"version": "4.17.44",
"main": ["build/css/bootstrap-datetimepicker.min.css","build/js/bootstrap-datetimepicker.min.js"],
"dependencies": {
"jquery" : ">=1.8.3",
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eonasdan/bootstrap-datetimepicker",
"type": "component",
"version": "4.17.45",
"version": "4.17.44",
"description": "Date/time picker widget based on twitter bootstrap",
"keywords": [
"bootstrap",
Expand All @@ -12,7 +12,7 @@
"require": {
"robloach/component-installer": "*",
"components/jquery": ">=1.9.1",
"moment": ">=2.10.5"
"moment/moment": ">=2.10.5"
},
"extra": {
"component": {
Expand Down
2 changes: 1 addition & 1 deletion docs/Options.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Takes a `boolean`. If set to `false` the picker will display similar to `sideByS
### locale

Default: moment.locale()
Accepts: string, moment.local('locale')
Accepts: string, moment.locale('locale')

See [momentjs](https://github.com/moment/moment/tree/develop/locale) for valid locales.

Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"bugs": {
"url": "https://github.com/eonasdan/bootstrap-datetimepicker/issues"
},
"peerDependencies": {
"bootstrap": "^3.3",
"jquery": "^1.8.3 || ^2.0",
"moment": "^2.10",
"moment-timezone": "^0.4.0"
},
"dependencies": {
"bootstrap": "^3.3",
"jquery": "^1.8.3 || ^2.0",
Expand Down Expand Up @@ -41,5 +47,5 @@
"type": "git",
"url": "https://github.com/eonasdan/bootstrap-datetimepicker.git"
},
"version": "4.17.45"
"version": "4.17.44"
}
13 changes: 7 additions & 6 deletions src/js/bootstrap-datetimepicker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! version : 4.17.45
/*! version : 4.17.44
=========================================================
bootstrap-datetimejs
https://github.com/Eonasdan/bootstrap-datetimepicker
Expand Down Expand Up @@ -453,15 +453,15 @@
widget.removeClass('pull-right');
}

// find the first parent element that has a relative css positioning
if (parent.css('position') !== 'relative') {
// find the first parent element that has a non-static css positioning
if (parent.css('position') === 'static') {
parent = parent.parents().filter(function () {
return $(this).css('position') === 'relative';
return $(this).css('position') !== 'static';
}).first();
}

if (parent.length === 0) {
throw new Error('datetimepicker component should be placed within a relative positioned container');
throw new Error('datetimepicker component should be placed within a non-static positioned container');
}

widget.css({
Expand Down Expand Up @@ -947,6 +947,7 @@

input.blur();

currentViewMode = 0;
viewDate = date.clone();

return picker;
Expand All @@ -958,7 +959,7 @@

parseInputDate = function (inputDate) {
if (options.parseInputDate === undefined) {
if (!moment.isMoment(inputDate)) {
if (!moment.isMoment(inputDate) || inputDate instanceof Date) {
inputDate = getMoment(inputDate);
}
} else {
Expand Down
3 changes: 2 additions & 1 deletion src/less/_bootstrap-datetimepicker.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Datetimepicker for Bootstrap 3
* version : 4.17.45
* version : 4.17.44
* https://github.com/Eonasdan/bootstrap-datetimepicker/
*/
@bs-datetimepicker-timepicker-font-size: 1.2em;
Expand All @@ -19,6 +19,7 @@
list-style: none;

&.dropdown-menu {
display: block;
margin: 2px 0;
padding: 4px;
width: 19em;
Expand Down

0 comments on commit d8363de

Please sign in to comment.