aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-05-17 01:32:25 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2021-05-17 01:32:25 +0200
commit6c21cb7b669a6778e57f7043c15446a38a1fc614 (patch)
treed4df2d192ab5c6b6f8a4c4bd8e3e6b0b4b36d8b8 /doc
parentTerminal reload events when jumping to today. (diff)
parentLong events now wholeday per default. (diff)
downloadcalp-6c21cb7b669a6778e57f7043c15446a38a1fc614.tar.gz
calp-6c21cb7b669a6778e57f7043c15446a38a1fc614.tar.xz
Merge branch 'jcal'
Diffstat (limited to 'doc')
-rw-r--r--doc/ref/javascript/binders.texi10
-rw-r--r--doc/ref/javascript/date_time.texi2
-rw-r--r--doc/ref/javascript/lib.texi3
3 files changed, 15 insertions, 0 deletions
diff --git a/doc/ref/javascript/binders.texi b/doc/ref/javascript/binders.texi
index 2b64b230..0e38411b 100644
--- a/doc/ref/javascript/binders.texi
+++ b/doc/ref/javascript/binders.texi
@@ -1,5 +1,7 @@
@node binders
+@cindex binder
+@cindex binders
@subsection binders.js
The bind system allows HTML-elements to specify that they want to be
@@ -45,3 +47,11 @@ Binder for the wholeday toggle button.
While CSS would suffice, this sets the disabled flags on the time
inputs, giving a better user experience.
@end defun
+
+@defun bind_date_time el e
+@anchor{bind_date_time}
+For @code{date_time} dummy component. Propagates gets and sets to
+underlying input fields.
+
+Note: @emph{Must} be called @emph{after} @code{init_date_time}.
+@end defun
diff --git a/doc/ref/javascript/date_time.texi b/doc/ref/javascript/date_time.texi
index fb2563f1..b2c5db92 100644
--- a/doc/ref/javascript/date_time.texi
+++ b/doc/ref/javascript/date_time.texi
@@ -36,4 +36,6 @@ components. We nevertheless use it here since we are emulating an
input element.
@end defivar
+See also @pxref{bind_date_time}
+
@end defun
diff --git a/doc/ref/javascript/lib.texi b/doc/ref/javascript/lib.texi
index ec5d4450..8adb8621 100644
--- a/doc/ref/javascript/lib.texi
+++ b/doc/ref/javascript/lib.texi
@@ -102,6 +102,9 @@ Boolean indicating if the time component of the Date object should be disregarde
@defun parseDate str
Takes a string @var{str}, which should be in ISO-8601 date-format, and
returns a javascript Date object.
+Handles date-times, with and without seconds, trailing `Z' for
+time-zones, and dates without times.
+If no time is given the @code{dateonly} attribute is set to yes.
@end defun
@defun copyDate date