Skip to content

Commit

Permalink
fix keybinds
Browse files Browse the repository at this point in the history
  • Loading branch information
Eonasdan committed Mar 15, 2018
1 parent 4cfa060 commit 34d6f78
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 8 deletions.
8 changes: 7 additions & 1 deletion build/js/tempusdominus-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ var DateTimePicker = function ($, moment) {
return true;
},
enter: function enter() {
if (!this.widget) {
return false;
}
this.hide();
return true;
},
Expand All @@ -265,6 +268,9 @@ var DateTimePicker = function ($, moment) {
return true;
},
t: function t() {
if (!this.widget) {
return false;
}
this.date(this.getMoment());
return true;
},
Expand Down Expand Up @@ -657,7 +663,7 @@ var DateTimePicker = function ($, moment) {
}

if (handler) {
if (handler.call(this.widget)) {
if (handler.call(this)) {
e.stopPropagation();
e.preventDefault();
}
Expand Down
2 changes: 1 addition & 1 deletion build/js/tempusdominus-core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tempusdominus/core",
"type": "component",
"version": "5.0.0-alpha16",
"version": "5.0.0-alpha17",
"description": "Tempus Dominus core",
"keywords": [
"bootstrap",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/tempusdominus/core/issues"
},
"dependencies": {
"jquery": "^1.9.1 || ^2.0 || ^3.0",
"jquery": "^3.0",
"moment": "^2.10",
"moment-timezone": "^0.4.0"
},
Expand Down Expand Up @@ -49,7 +49,7 @@
"type": "git",
"url": "https://github.com/tempusdominus/core.git"
},
"version": "5.0.0-alpha16",
"version": "5.0.0-alpha17",
"files": [
"build",
"src/js/**/*.js",
Expand Down
8 changes: 7 additions & 1 deletion src/js/tempusdominus-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ const DateTimePicker = (($, moment) => {
return true;
},
enter: function () {
if (!this.widget) {
return false;
}
this.hide();
return true;
},
Expand All @@ -264,6 +267,9 @@ const DateTimePicker = (($, moment) => {
return true;
},
t: function () {
if (!this.widget) {
return false;
}
this.date(this.getMoment());
return true;
},
Expand Down Expand Up @@ -709,7 +715,7 @@ const DateTimePicker = (($, moment) => {
}

if (handler) {
if (handler.call(this.widget)) {
if (handler.call(this)) {
e.stopPropagation();
e.preventDefault();
}
Expand Down
16 changes: 14 additions & 2 deletions tasks/bump-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,19 @@ module.exports = function (grunt) {
]
}
});


grunt.config('string-replace.package-json-lock', {
files: { 'package-lock.json': 'package-lock.json' },
options: {
replacements: [
{
pattern: /"version": .*/,
replacement: '"version": "' + version + '",'
}
]
}
});

grunt.config('string-replace.composer-json', {
files: {'composer.json': 'composer.json'},
options: {
Expand Down Expand Up @@ -46,4 +58,4 @@ module.exports = function (grunt) {
'string-replace:js'
]);
});
};
};

0 comments on commit 34d6f78

Please sign in to comment.