bootstrap-datepicker 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/.hgignore +3 -0
- data/.hgtags +9 -0
- data/.travis.yml +4 -0
- data/CHANGELOG.md +89 -0
- data/CONTRIBUTING.md +40 -0
- data/Gemfile +4 -0
- data/Gruntfile.js +165 -0
- data/LICENSE +202 -0
- data/README.md +24 -0
- data/Rakefile +1 -0
- data/bootstrap-datepicker.gemspec +26 -0
- data/bower.json +9 -0
- data/build/build.less +67 -0
- data/build/build3.less +71 -0
- data/build/build_standalone.less +61 -0
- data/build/build_standalone3.less +63 -0
- data/composer.json +19 -0
- data/css/datepicker.css +509 -0
- data/css/datepicker3.css +790 -0
- data/docs/Makefile +153 -0
- data/docs/REAME.md +8 -0
- data/docs/_static/demo_head.png +0 -0
- data/docs/conf.py +248 -0
- data/docs/events.rst +48 -0
- data/docs/i18n.rst +28 -0
- data/docs/index.rst +122 -0
- data/docs/keyboard.rst +30 -0
- data/docs/make.bat +190 -0
- data/docs/markup.rst +50 -0
- data/docs/methods.rst +156 -0
- data/docs/options.rst +191 -0
- data/js/bootstrap-datepicker.js +1609 -0
- data/js/locales/bootstrap-datepicker.ar.js +15 -0
- data/js/locales/bootstrap-datepicker.bg.js +14 -0
- data/js/locales/bootstrap-datepicker.ca.js +14 -0
- data/js/locales/bootstrap-datepicker.cs.js +15 -0
- data/js/locales/bootstrap-datepicker.cy.js +14 -0
- data/js/locales/bootstrap-datepicker.da.js +15 -0
- data/js/locales/bootstrap-datepicker.de.js +17 -0
- data/js/locales/bootstrap-datepicker.el.js +13 -0
- data/js/locales/bootstrap-datepicker.es.js +14 -0
- data/js/locales/bootstrap-datepicker.et.js +18 -0
- data/js/locales/bootstrap-datepicker.fa.js +17 -0
- data/js/locales/bootstrap-datepicker.fi.js +16 -0
- data/js/locales/bootstrap-datepicker.fr.js +17 -0
- data/js/locales/bootstrap-datepicker.gl.js +11 -0
- data/js/locales/bootstrap-datepicker.he.js +15 -0
- data/js/locales/bootstrap-datepicker.hr.js +13 -0
- data/js/locales/bootstrap-datepicker.hu.js +16 -0
- data/js/locales/bootstrap-datepicker.id.js +15 -0
- data/js/locales/bootstrap-datepicker.is.js +14 -0
- data/js/locales/bootstrap-datepicker.it.js +16 -0
- data/js/locales/bootstrap-datepicker.ja.js +15 -0
- data/js/locales/bootstrap-datepicker.ka.js +17 -0
- data/js/locales/bootstrap-datepicker.kk.js +15 -0
- data/js/locales/bootstrap-datepicker.kr.js +13 -0
- data/js/locales/bootstrap-datepicker.lt.js +16 -0
- data/js/locales/bootstrap-datepicker.lv.js +16 -0
- data/js/locales/bootstrap-datepicker.mk.js +15 -0
- data/js/locales/bootstrap-datepicker.ms.js +14 -0
- data/js/locales/bootstrap-datepicker.nb.js +14 -0
- data/js/locales/bootstrap-datepicker.nl-BE.js +17 -0
- data/js/locales/bootstrap-datepicker.nl.js +14 -0
- data/js/locales/bootstrap-datepicker.no.js +16 -0
- data/js/locales/bootstrap-datepicker.pl.js +15 -0
- data/js/locales/bootstrap-datepicker.pt-BR.js +15 -0
- data/js/locales/bootstrap-datepicker.pt.js +16 -0
- data/js/locales/bootstrap-datepicker.ro.js +15 -0
- data/js/locales/bootstrap-datepicker.rs-latin.js +14 -0
- data/js/locales/bootstrap-datepicker.rs.js +14 -0
- data/js/locales/bootstrap-datepicker.ru.js +15 -0
- data/js/locales/bootstrap-datepicker.sk.js +15 -0
- data/js/locales/bootstrap-datepicker.sl.js +14 -0
- data/js/locales/bootstrap-datepicker.sq.js +15 -0
- data/js/locales/bootstrap-datepicker.sv.js +16 -0
- data/js/locales/bootstrap-datepicker.sw.js +15 -0
- data/js/locales/bootstrap-datepicker.th.js +14 -0
- data/js/locales/bootstrap-datepicker.tr.js +16 -0
- data/js/locales/bootstrap-datepicker.ua.js +15 -0
- data/js/locales/bootstrap-datepicker.uk.js +14 -0
- data/js/locales/bootstrap-datepicker.vi.js +16 -0
- data/js/locales/bootstrap-datepicker.zh-CN.js +16 -0
- data/js/locales/bootstrap-datepicker.zh-TW.js +17 -0
- data/less/datepicker.less +265 -0
- data/less/datepicker3.less +252 -0
- data/lib/bootstrap-datepicker.rb +11 -0
- data/lib/bootstrap-datepicker/version.rb +9 -0
- data/package.json +32 -0
- data/sass/build_standalone-sass.scss +70 -0
- data/sass/datepicker.scss +270 -0
- data/test/Readme.md +9 -0
- data/test/less_test.js +19 -0
- data/test/scss_test.js +19 -0
- data/test/support/less.patch +4 -0
- data/test/support/scss.patch +493 -0
- data/tests/README.md +55 -0
- data/tests/_coverage.html +26 -0
- data/tests/assets/coverage.js +48 -0
- data/tests/assets/jquery-1.7.1.min.js +4 -0
- data/tests/assets/mock.js +26 -0
- data/tests/assets/qunit-logging.js +29 -0
- data/tests/assets/qunit.css +235 -0
- data/tests/assets/qunit.js +1669 -0
- data/tests/assets/utils.js +21 -0
- data/tests/run-qunit.js +157 -0
- data/tests/suites/calendar-weeks.js +48 -0
- data/tests/suites/component.js +202 -0
- data/tests/suites/data-api.js +114 -0
- data/tests/suites/events.js +306 -0
- data/tests/suites/formats.js +235 -0
- data/tests/suites/inline.js +28 -0
- data/tests/suites/keyboard_navigation/2011.js +92 -0
- data/tests/suites/keyboard_navigation/2012.js +468 -0
- data/tests/suites/keyboard_navigation/all.js +26 -0
- data/tests/suites/methods.js +78 -0
- data/tests/suites/mouse_navigation/2011.js +66 -0
- data/tests/suites/mouse_navigation/2012.js +251 -0
- data/tests/suites/mouse_navigation/all.js +33 -0
- data/tests/suites/noconflict.js +20 -0
- data/tests/suites/options.js +648 -0
- data/tests/tests.html +50 -0
- metadata +240 -0
data/docs/Makefile
ADDED
@@ -0,0 +1,153 @@
|
|
1
|
+
# Makefile for Sphinx documentation
|
2
|
+
#
|
3
|
+
|
4
|
+
# You can set these variables from the command line.
|
5
|
+
SPHINXOPTS =
|
6
|
+
SPHINXBUILD = sphinx-build
|
7
|
+
PAPER =
|
8
|
+
BUILDDIR = _build
|
9
|
+
|
10
|
+
# Internal variables.
|
11
|
+
PAPEROPT_a4 = -D latex_paper_size=a4
|
12
|
+
PAPEROPT_letter = -D latex_paper_size=letter
|
13
|
+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
14
|
+
# the i18n builder cannot share the environment and doctrees with the others
|
15
|
+
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
16
|
+
|
17
|
+
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
|
18
|
+
|
19
|
+
help:
|
20
|
+
@echo "Please use \`make <target>' where <target> is one of"
|
21
|
+
@echo " html to make standalone HTML files"
|
22
|
+
@echo " dirhtml to make HTML files named index.html in directories"
|
23
|
+
@echo " singlehtml to make a single large HTML file"
|
24
|
+
@echo " pickle to make pickle files"
|
25
|
+
@echo " json to make JSON files"
|
26
|
+
@echo " htmlhelp to make HTML files and a HTML help project"
|
27
|
+
@echo " qthelp to make HTML files and a qthelp project"
|
28
|
+
@echo " devhelp to make HTML files and a Devhelp project"
|
29
|
+
@echo " epub to make an epub"
|
30
|
+
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
31
|
+
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
32
|
+
@echo " text to make text files"
|
33
|
+
@echo " man to make manual pages"
|
34
|
+
@echo " texinfo to make Texinfo files"
|
35
|
+
@echo " info to make Texinfo files and run them through makeinfo"
|
36
|
+
@echo " gettext to make PO message catalogs"
|
37
|
+
@echo " changes to make an overview of all changed/added/deprecated items"
|
38
|
+
@echo " linkcheck to check all external links for integrity"
|
39
|
+
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
40
|
+
|
41
|
+
clean:
|
42
|
+
-rm -rf $(BUILDDIR)/*
|
43
|
+
|
44
|
+
html:
|
45
|
+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
46
|
+
@echo
|
47
|
+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
48
|
+
|
49
|
+
dirhtml:
|
50
|
+
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
51
|
+
@echo
|
52
|
+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
53
|
+
|
54
|
+
singlehtml:
|
55
|
+
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
56
|
+
@echo
|
57
|
+
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
58
|
+
|
59
|
+
pickle:
|
60
|
+
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
61
|
+
@echo
|
62
|
+
@echo "Build finished; now you can process the pickle files."
|
63
|
+
|
64
|
+
json:
|
65
|
+
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
66
|
+
@echo
|
67
|
+
@echo "Build finished; now you can process the JSON files."
|
68
|
+
|
69
|
+
htmlhelp:
|
70
|
+
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
71
|
+
@echo
|
72
|
+
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
73
|
+
".hhp project file in $(BUILDDIR)/htmlhelp."
|
74
|
+
|
75
|
+
qthelp:
|
76
|
+
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
77
|
+
@echo
|
78
|
+
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
79
|
+
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
80
|
+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/bootstrap-datepicker.qhcp"
|
81
|
+
@echo "To view the help file:"
|
82
|
+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/bootstrap-datepicker.qhc"
|
83
|
+
|
84
|
+
devhelp:
|
85
|
+
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
86
|
+
@echo
|
87
|
+
@echo "Build finished."
|
88
|
+
@echo "To view the help file:"
|
89
|
+
@echo "# mkdir -p $$HOME/.local/share/devhelp/bootstrap-datepicker"
|
90
|
+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/bootstrap-datepicker"
|
91
|
+
@echo "# devhelp"
|
92
|
+
|
93
|
+
epub:
|
94
|
+
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
95
|
+
@echo
|
96
|
+
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
97
|
+
|
98
|
+
latex:
|
99
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
100
|
+
@echo
|
101
|
+
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
102
|
+
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
103
|
+
"(use \`make latexpdf' here to do that automatically)."
|
104
|
+
|
105
|
+
latexpdf:
|
106
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
107
|
+
@echo "Running LaTeX files through pdflatex..."
|
108
|
+
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
109
|
+
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
110
|
+
|
111
|
+
text:
|
112
|
+
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
113
|
+
@echo
|
114
|
+
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
115
|
+
|
116
|
+
man:
|
117
|
+
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
118
|
+
@echo
|
119
|
+
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
120
|
+
|
121
|
+
texinfo:
|
122
|
+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
123
|
+
@echo
|
124
|
+
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
|
125
|
+
@echo "Run \`make' in that directory to run these through makeinfo" \
|
126
|
+
"(use \`make info' here to do that automatically)."
|
127
|
+
|
128
|
+
info:
|
129
|
+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
130
|
+
@echo "Running Texinfo files through makeinfo..."
|
131
|
+
make -C $(BUILDDIR)/texinfo info
|
132
|
+
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
133
|
+
|
134
|
+
gettext:
|
135
|
+
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
136
|
+
@echo
|
137
|
+
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
138
|
+
|
139
|
+
changes:
|
140
|
+
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
141
|
+
@echo
|
142
|
+
@echo "The overview file is in $(BUILDDIR)/changes."
|
143
|
+
|
144
|
+
linkcheck:
|
145
|
+
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
146
|
+
@echo
|
147
|
+
@echo "Link check complete; look for any errors in the above output " \
|
148
|
+
"or in $(BUILDDIR)/linkcheck/output.txt."
|
149
|
+
|
150
|
+
doctest:
|
151
|
+
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
152
|
+
@echo "Testing of doctests in the sources finished, look at the " \
|
153
|
+
"results in $(BUILDDIR)/doctest/output.txt."
|
data/docs/REAME.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
Documentation
|
2
|
+
=============
|
3
|
+
|
4
|
+
Project documentation is built using [Sphinx docs](http://sphinx-doc.org/), which uses [ReST](http://docutils.sf.net/rst.html) for markup. This allows the docs to cover a vast amount of topics without using a thousand-line README file.
|
5
|
+
|
6
|
+
Sphinx docs is pip-installable via `pip install sphinx`. Once installed, open a command line in the docs folder and run `make html`; the output files will be placed in the `_build/html/` directory, and can be browsed (locally) with any browser.
|
7
|
+
|
8
|
+
The docs can also be found online at http://bootstrap-datepicker.readthedocs.org/.
|
Binary file
|
data/docs/conf.py
ADDED
@@ -0,0 +1,248 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# bootstrap-datepicker documentation build configuration file, created by
|
4
|
+
# sphinx-quickstart on Fri Aug 2 14:45:57 2013.
|
5
|
+
#
|
6
|
+
# This file is execfile()d with the current directory set to its containing dir.
|
7
|
+
#
|
8
|
+
# Note that not all possible configuration values are present in this
|
9
|
+
# autogenerated file.
|
10
|
+
#
|
11
|
+
# All configuration values have a default; values that are commented out
|
12
|
+
# serve to show the default.
|
13
|
+
|
14
|
+
import sys, os
|
15
|
+
|
16
|
+
# The version info for the project you're documenting, acts as replacement for
|
17
|
+
# |version| and |release|, also used in various other places throughout the
|
18
|
+
# built documents.
|
19
|
+
#
|
20
|
+
# The short X.Y version.
|
21
|
+
#version = ''
|
22
|
+
# The full version, including alpha/beta/rc tags.
|
23
|
+
#release = ''
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
# If extensions (or modules to document with autodoc) are in another directory,
|
28
|
+
# add these directories to sys.path here. If the directory is relative to the
|
29
|
+
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
30
|
+
#sys.path.insert(0, os.path.abspath('.'))
|
31
|
+
|
32
|
+
# -- General configuration -----------------------------------------------------
|
33
|
+
|
34
|
+
# If your documentation needs a minimal Sphinx version, state it here.
|
35
|
+
#needs_sphinx = '1.0'
|
36
|
+
|
37
|
+
primary_domain = 'js'
|
38
|
+
|
39
|
+
# Add any Sphinx extension module names here, as strings. They can be extensions
|
40
|
+
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
41
|
+
extensions = []
|
42
|
+
|
43
|
+
# Add any paths that contain templates here, relative to this directory.
|
44
|
+
templates_path = ['_templates']
|
45
|
+
|
46
|
+
# The suffix of source filenames.
|
47
|
+
source_suffix = '.rst'
|
48
|
+
|
49
|
+
# The encoding of source files.
|
50
|
+
#source_encoding = 'utf-8-sig'
|
51
|
+
|
52
|
+
# The master toctree document.
|
53
|
+
master_doc = 'index'
|
54
|
+
|
55
|
+
# General information about the project.
|
56
|
+
project = u'bootstrap-datepicker'
|
57
|
+
copyright = u'2013, eternicode'
|
58
|
+
|
59
|
+
# The language for content autogenerated by Sphinx. Refer to documentation
|
60
|
+
# for a list of supported languages.
|
61
|
+
#language = None
|
62
|
+
|
63
|
+
# There are two options for replacing |today|: either, you set today to some
|
64
|
+
# non-false value, then it is used:
|
65
|
+
#today = ''
|
66
|
+
# Else, today_fmt is used as the format for a strftime call.
|
67
|
+
#today_fmt = '%B %d, %Y'
|
68
|
+
|
69
|
+
# List of patterns, relative to source directory, that match files and
|
70
|
+
# directories to ignore when looking for source files.
|
71
|
+
exclude_patterns = ['_build']
|
72
|
+
|
73
|
+
# The reST default role (used for this markup: `text`) to use for all documents.
|
74
|
+
#default_role = None
|
75
|
+
|
76
|
+
# If true, '()' will be appended to :func: etc. cross-reference text.
|
77
|
+
#add_function_parentheses = True
|
78
|
+
|
79
|
+
# If true, the current module name will be prepended to all description
|
80
|
+
# unit titles (such as .. function::).
|
81
|
+
#add_module_names = True
|
82
|
+
|
83
|
+
# If true, sectionauthor and moduleauthor directives will be shown in the
|
84
|
+
# output. They are ignored by default.
|
85
|
+
#show_authors = False
|
86
|
+
|
87
|
+
# The name of the Pygments (syntax highlighting) style to use.
|
88
|
+
pygments_style = 'sphinx'
|
89
|
+
|
90
|
+
highlight_language = 'javascript'
|
91
|
+
|
92
|
+
# A list of ignored prefixes for module index sorting.
|
93
|
+
#modindex_common_prefix = []
|
94
|
+
|
95
|
+
|
96
|
+
# -- Options for HTML output ---------------------------------------------------
|
97
|
+
|
98
|
+
# The theme to use for HTML and HTML Help pages. See the documentation for
|
99
|
+
# a list of builtin themes.
|
100
|
+
html_theme = 'default'
|
101
|
+
|
102
|
+
# Theme options are theme-specific and customize the look and feel of a theme
|
103
|
+
# further. For a list of options available for each theme, see the
|
104
|
+
# documentation.
|
105
|
+
#html_theme_options = {}
|
106
|
+
|
107
|
+
# Add any paths that contain custom themes here, relative to this directory.
|
108
|
+
#html_theme_path = []
|
109
|
+
|
110
|
+
# The name for this set of Sphinx documents. If None, it defaults to
|
111
|
+
# "<project> v<release> documentation".
|
112
|
+
#html_title = None
|
113
|
+
|
114
|
+
# A shorter title for the navigation bar. Default is the same as html_title.
|
115
|
+
#html_short_title = None
|
116
|
+
|
117
|
+
# The name of an image file (relative to this directory) to place at the top
|
118
|
+
# of the sidebar.
|
119
|
+
#html_logo = None
|
120
|
+
|
121
|
+
# The name of an image file (within the static path) to use as favicon of the
|
122
|
+
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
123
|
+
# pixels large.
|
124
|
+
#html_favicon = None
|
125
|
+
|
126
|
+
# Add any paths that contain custom static files (such as style sheets) here,
|
127
|
+
# relative to this directory. They are copied after the builtin static files,
|
128
|
+
# so a file named "default.css" will overwrite the builtin "default.css".
|
129
|
+
html_static_path = ['_static']
|
130
|
+
|
131
|
+
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
132
|
+
# using the given strftime format.
|
133
|
+
#html_last_updated_fmt = '%b %d, %Y'
|
134
|
+
|
135
|
+
# If true, SmartyPants will be used to convert quotes and dashes to
|
136
|
+
# typographically correct entities.
|
137
|
+
#html_use_smartypants = True
|
138
|
+
|
139
|
+
# Custom sidebar templates, maps document names to template names.
|
140
|
+
#html_sidebars = {}
|
141
|
+
|
142
|
+
# Additional templates that should be rendered to pages, maps page names to
|
143
|
+
# template names.
|
144
|
+
#html_additional_pages = {}
|
145
|
+
|
146
|
+
# If false, no module index is generated.
|
147
|
+
#html_domain_indices = True
|
148
|
+
|
149
|
+
# If false, no index is generated.
|
150
|
+
#html_use_index = True
|
151
|
+
|
152
|
+
# If true, the index is split into individual pages for each letter.
|
153
|
+
#html_split_index = False
|
154
|
+
|
155
|
+
# If true, links to the reST sources are added to the pages.
|
156
|
+
#html_show_sourcelink = True
|
157
|
+
|
158
|
+
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
159
|
+
#html_show_sphinx = True
|
160
|
+
|
161
|
+
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
162
|
+
#html_show_copyright = True
|
163
|
+
|
164
|
+
# If true, an OpenSearch description file will be output, and all pages will
|
165
|
+
# contain a <link> tag referring to it. The value of this option must be the
|
166
|
+
# base URL from which the finished HTML is served.
|
167
|
+
#html_use_opensearch = ''
|
168
|
+
|
169
|
+
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
170
|
+
#html_file_suffix = None
|
171
|
+
|
172
|
+
# Output file base name for HTML help builder.
|
173
|
+
htmlhelp_basename = 'bootstrap-datepickerdoc'
|
174
|
+
|
175
|
+
|
176
|
+
# -- Options for LaTeX output --------------------------------------------------
|
177
|
+
|
178
|
+
latex_elements = {
|
179
|
+
# The paper size ('letterpaper' or 'a4paper').
|
180
|
+
#'papersize': 'letterpaper',
|
181
|
+
|
182
|
+
# The font size ('10pt', '11pt' or '12pt').
|
183
|
+
#'pointsize': '10pt',
|
184
|
+
|
185
|
+
# Additional stuff for the LaTeX preamble.
|
186
|
+
#'preamble': '',
|
187
|
+
}
|
188
|
+
|
189
|
+
# Grouping the document tree into LaTeX files. List of tuples
|
190
|
+
# (source start file, target name, title, author, documentclass [howto/manual]).
|
191
|
+
latex_documents = [
|
192
|
+
('index', 'bootstrap-datepicker.tex', u'bootstrap-datepicker Documentation',
|
193
|
+
u'eternicode', 'manual'),
|
194
|
+
]
|
195
|
+
|
196
|
+
# The name of an image file (relative to this directory) to place at the top of
|
197
|
+
# the title page.
|
198
|
+
#latex_logo = None
|
199
|
+
|
200
|
+
# For "manual" documents, if this is true, then toplevel headings are parts,
|
201
|
+
# not chapters.
|
202
|
+
#latex_use_parts = False
|
203
|
+
|
204
|
+
# If true, show page references after internal links.
|
205
|
+
#latex_show_pagerefs = False
|
206
|
+
|
207
|
+
# If true, show URL addresses after external links.
|
208
|
+
#latex_show_urls = False
|
209
|
+
|
210
|
+
# Documents to append as an appendix to all manuals.
|
211
|
+
#latex_appendices = []
|
212
|
+
|
213
|
+
# If false, no module index is generated.
|
214
|
+
#latex_domain_indices = True
|
215
|
+
|
216
|
+
|
217
|
+
# -- Options for manual page output --------------------------------------------
|
218
|
+
|
219
|
+
# One entry per manual page. List of tuples
|
220
|
+
# (source start file, name, description, authors, manual section).
|
221
|
+
man_pages = [
|
222
|
+
('index', 'bootstrap-datepicker', u'bootstrap-datepicker Documentation',
|
223
|
+
[u'eternicode'], 1)
|
224
|
+
]
|
225
|
+
|
226
|
+
# If true, show URL addresses after external links.
|
227
|
+
#man_show_urls = False
|
228
|
+
|
229
|
+
|
230
|
+
# -- Options for Texinfo output ------------------------------------------------
|
231
|
+
|
232
|
+
# Grouping the document tree into Texinfo files. List of tuples
|
233
|
+
# (source start file, target name, title, author,
|
234
|
+
# dir menu entry, description, category)
|
235
|
+
texinfo_documents = [
|
236
|
+
('index', 'bootstrap-datepicker', u'bootstrap-datepicker Documentation',
|
237
|
+
u'eternicode', 'bootstrap-datepicker', 'One line description of project.',
|
238
|
+
'Miscellaneous'),
|
239
|
+
]
|
240
|
+
|
241
|
+
# Documents to append as an appendix to all manuals.
|
242
|
+
#texinfo_appendices = []
|
243
|
+
|
244
|
+
# If false, no module index is generated.
|
245
|
+
#texinfo_domain_indices = True
|
246
|
+
|
247
|
+
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
248
|
+
#texinfo_show_urls = 'footnote'
|
data/docs/events.rst
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
Events
|
2
|
+
======
|
3
|
+
|
4
|
+
Datepicker triggers a number of events in certain circumstances. All events have extra data attached to the event object that is passed to any event handlers::
|
5
|
+
|
6
|
+
$('.datepicker').datepicker()
|
7
|
+
.on(picker_event, function(e){
|
8
|
+
# `e` here contains the extra attributes
|
9
|
+
});
|
10
|
+
|
11
|
+
* ``date``: the relevant Date object, in local timezone. For a multidate picker, this will be the latest date picked.
|
12
|
+
* ``dates``: an Array of Date objects, in local timezone, when using a multidate picker.
|
13
|
+
* ``format([ix], [format])``: a function to make formatting ``date`` easier. ``ix`` can be the index of a Date in the ``dates`` array to format; if absent, the last date selected will be used. ``format`` can be any format string that datepicker supports; if absent, the format set on the datepicker will be used. Both arguments are optional.
|
14
|
+
|
15
|
+
|
16
|
+
show
|
17
|
+
----
|
18
|
+
|
19
|
+
Fired when the date picker is displayed.
|
20
|
+
|
21
|
+
|
22
|
+
hide
|
23
|
+
----
|
24
|
+
|
25
|
+
Fired when the date picker is hidden.
|
26
|
+
|
27
|
+
|
28
|
+
clearDate
|
29
|
+
---------
|
30
|
+
|
31
|
+
Fired when the date is cleared, normally when the "clear" button (enabled with the ``clearBtn`` option) is pressed.
|
32
|
+
|
33
|
+
|
34
|
+
changeDate
|
35
|
+
----------
|
36
|
+
|
37
|
+
Fired when the date is changed.
|
38
|
+
|
39
|
+
|
40
|
+
changeYear
|
41
|
+
----------
|
42
|
+
|
43
|
+
Fired when the *view* year is changed from decade view.
|
44
|
+
|
45
|
+
changeMonth
|
46
|
+
-----------
|
47
|
+
|
48
|
+
Fired when the *view* month is changed from year view.
|