tiny fixes datetime
This commit is contained in:
parent
13105e6f8f
commit
c7a223be2f
src/inputs/datetime
@ -1,6 +1,11 @@
|
|||||||
/**
|
/**
|
||||||
Bootstrap-datetimepicker.
|
Bootstrap-datetimepicker.
|
||||||
Description and examples: https://github.com/smalot/bootstrap-datetimepicker.
|
Based on [smalot bootstrap-datetimepicker plugin](https://github.com/smalot/bootstrap-datetimepicker).
|
||||||
|
Before usage you should manually include dependent js and css:
|
||||||
|
|
||||||
|
<link href="css/datetimepicker.css" rel="stylesheet" type="text/css"></link>
|
||||||
|
<script src="js/bootstrap-datetimepicker.js"></script>
|
||||||
|
|
||||||
For **i18n** you should include js file from here: https://github.com/smalot/bootstrap-datetimepicker/tree/master/js/locales
|
For **i18n** you should include js file from here: https://github.com/smalot/bootstrap-datetimepicker/tree/master/js/locales
|
||||||
and set `language` option.
|
and set `language` option.
|
||||||
|
|
||||||
@ -13,8 +18,8 @@ and set `language` option.
|
|||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
$('#last_seen').editable({
|
$('#last_seen').editable({
|
||||||
format: 'yyyy-mm-dd hh:ii:ss',
|
format: 'yyyy-mm-dd hh:ii',
|
||||||
viewformat: 'dd/mm/yyyy hh:ii:ss',
|
viewformat: 'dd/mm/yyyy hh:ii',
|
||||||
datetimepicker: {
|
datetimepicker: {
|
||||||
weekStart: 1
|
weekStart: 1
|
||||||
}
|
}
|
||||||
@ -163,7 +168,7 @@ $(function(){
|
|||||||
inputclass: null,
|
inputclass: null,
|
||||||
/**
|
/**
|
||||||
Format used for sending value to server. Also applied when converting date from <code>data-value</code> attribute.<br>
|
Format used for sending value to server. Also applied when converting date from <code>data-value</code> attribute.<br>
|
||||||
Possible tokens are: <code>d, dd, m, mm, yy, yyyy</code>
|
Possible tokens are: <code>d, dd, m, mm, yy, yyyy, h, i</code>
|
||||||
|
|
||||||
@property format
|
@property format
|
||||||
@type string
|
@type string
|
||||||
@ -186,18 +191,9 @@ $(function(){
|
|||||||
|
|
||||||
@property datetimepicker
|
@property datetimepicker
|
||||||
@type object
|
@type object
|
||||||
@default {
|
@default { }
|
||||||
weekStart: 0,
|
|
||||||
startView: 0,
|
|
||||||
minView: 0,
|
|
||||||
autoclose: false
|
|
||||||
}
|
|
||||||
**/
|
**/
|
||||||
datetimepicker:{
|
datetimepicker:{
|
||||||
weekStart: 0,
|
|
||||||
startView: 2, // month
|
|
||||||
maxView: 4, // decade
|
|
||||||
minView: 0,
|
|
||||||
todayHighlight: false,
|
todayHighlight: false,
|
||||||
autoclose: false
|
autoclose: false
|
||||||
},
|
},
|
||||||
|
@ -66,10 +66,6 @@ Automatically shown in inline mode.
|
|||||||
|
|
||||||
/* datetimepicker config */
|
/* datetimepicker config */
|
||||||
datetimepicker:{
|
datetimepicker:{
|
||||||
weekStart: 0,
|
|
||||||
startView: 2, // month
|
|
||||||
maxView: 4, // decade
|
|
||||||
minView: 0,
|
|
||||||
todayHighlight: false,
|
todayHighlight: false,
|
||||||
autoclose: true
|
autoclose: true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user