summaryrefslogtreecommitdiff
path: root/assets/js/src
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-07 19:15:53 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-07 19:15:53 -0400
commit58297ca3b11b9ad526a8ac344e5ac56d9e1b5a13 (patch)
treec20ff7b7463e0fa97667a2f17c482c85e015f7e3 /assets/js/src
parent5e7e03a866459047b677e57be33eee991aa57214 (diff)
Add datetime picker for start date
Diffstat (limited to 'assets/js/src')
-rw-r--r--assets/js/src/base.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/assets/js/src/base.js b/assets/js/src/base.js
index 2540f084..531488c9 100644
--- a/assets/js/src/base.js
+++ b/assets/js/src/base.js
@@ -277,6 +277,15 @@ var Kanboard = (function() {
constrainInput: false
});
+ // Datetime picker
+ $(".form-datetime").datetimepicker({
+ controlType: 'select',
+ oneLine: true,
+ dateFormat: 'yy-mm-dd',
+ // timeFormat: 'h:mm tt',
+ constrainInput: false
+ });
+
// Markdown Preview for textareas
$("#markdown-preview").click(Kanboard.MarkdownPreview);
$("#markdown-write").click(Kanboard.MarkdownWriter);