Pikaday with time support
This commit is contained in:
1194
attract/static/assets/js/vendor/pikaday.js
vendored
1194
attract/static/assets/js/vendor/pikaday.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,4 +1,5 @@
|
|||||||
@import ../_config
|
@import ../_config
|
||||||
|
@import ../_app_utils
|
||||||
@charset "UTF-8"
|
@charset "UTF-8"
|
||||||
|
|
||||||
/* Pikaday */
|
/* Pikaday */
|
||||||
@@ -181,3 +182,18 @@
|
|||||||
.pika-table abbr
|
.pika-table abbr
|
||||||
border-bottom: none
|
border-bottom: none
|
||||||
cursor: help
|
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
|
||||||
|
@@ -167,8 +167,13 @@ script.
|
|||||||
{
|
{
|
||||||
field: document.getElementById('item-due_date'),
|
field: document.getElementById('item-due_date'),
|
||||||
firstDay: 1,
|
firstDay: 1,
|
||||||
|
showTime: false,
|
||||||
|
use24hour: true,
|
||||||
format: 'dddd D, MMMM YYYY',
|
format: 'dddd D, MMMM YYYY',
|
||||||
disableWeekends: true,
|
disableWeekends: true,
|
||||||
|
timeLabel: 'Time: ',
|
||||||
|
autoClose: true,
|
||||||
|
incrementMinuteBy: 15,
|
||||||
yearRange: [new Date().getFullYear(),new Date().getFullYear() + 5]
|
yearRange: [new Date().getFullYear(),new Date().getFullYear() + 5]
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -177,6 +182,7 @@ script.
|
|||||||
if (ProjectUtils.context() == 'shot'){
|
if (ProjectUtils.context() == 'shot'){
|
||||||
$('.field-type').hide();
|
$('.field-type').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#item-description')
|
$('#item-description')
|
||||||
.autoResize()
|
.autoResize()
|
||||||
.blur();
|
.blur();
|
||||||
|
Reference in New Issue
Block a user