Pikaday with time support

This commit is contained in:
2016-11-08 17:48:48 +01:00
parent c935725e64
commit b8e2151a33
3 changed files with 23 additions and 1193 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,5 @@
@import ../_config
@import ../_app_utils
@charset "UTF-8"
/* Pikaday */
@@ -181,3 +182,18 @@
.pika-table abbr
border-bottom: none
cursor: help
.pika-time
width: 100%
display: flex
align-items: center
justify-content: center
padding: 5px 0 10px 0
color: $color-text-dark-primary
td
padding: 0 2px
select
+input-generic
padding: 2px 3px

View File

@@ -167,8 +167,13 @@ script.
{
field: document.getElementById('item-due_date'),
firstDay: 1,
showTime: false,
use24hour: true,
format: 'dddd D, MMMM YYYY',
disableWeekends: true,
timeLabel: 'Time: ',
autoClose: true,
incrementMinuteBy: 15,
yearRange: [new Date().getFullYear(),new Date().getFullYear() + 5]
});
@@ -177,6 +182,7 @@ script.
if (ProjectUtils.context() == 'shot'){
$('.field-type').hide();
}
$('#item-description')
.autoResize()
.blur();