Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
a6dcbbf4
Commit
a6dcbbf4
authored
Apr 06, 2012
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Datepicker accepts time without seconds.
parent
d9f09d1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
TODO.txt
TODO.txt
+2
-1
bootstrap-datepicker.js
flask_adminex/static/js/bootstrap-datepicker.js
+14
-1
No files found.
TODO.txt
View file @
a6dcbbf4
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
- Model Admin
- Model Admin
- Ability to sort by fields that are not visible?
- Ability to sort by fields that are not visible?
- List display callables
- List display callables
- Fields
- Form Fields
- Override field class by field name
- Verify how boolean field is rendered
- Verify how boolean field is rendered
- Search
- Search
- Rename init_search
- Rename init_search
...
...
flask_adminex/static/js/bootstrap-datepicker.js
View file @
a6dcbbf4
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
,
getTimeString
:
function
(
s
)
{
,
getTimeString
:
function
(
s
)
{
var
time
=
$
(
'input'
,
this
.
$time
).
val
();
var
time
=
$
(
'input'
,
this
.
$time
).
val
();
return
this
.
validateTime
(
time
)
?
time
:
'12:00:00'
;
return
this
.
getTime
(
time
)
;
}
}
,
pad
:
function
(
s
)
{
,
pad
:
function
(
s
)
{
...
@@ -291,6 +291,19 @@
...
@@ -291,6 +291,19 @@
return
s
.
match
(
/^
(\d{2,2})
:
(\d{2,2})
:
(\d{2,2})
$/
);
return
s
.
match
(
/^
(\d{2,2})
:
(\d{2,2})
:
(\d{2,2})
$/
);
}
}
,
getTime
:
function
(
s
)
{
if
(
this
.
validateTime
(
s
))
{
return
s
;
}
else
{
// Time without seconds
if
(
s
.
match
(
/^
(\d{2,2})
:
(\d{2,2})
$/
))
{
return
s
+
':00'
;
}
}
return
'00:00:00'
;
}
,
format
:
function
(
date
)
{
,
format
:
function
(
date
)
{
// Format a Date into a string as specified by RFC 3339.
// Format a Date into a string as specified by RFC 3339.
var
month
=
this
.
pad
((
date
.
getMonth
()
+
1
).
toString
()),
var
month
=
this
.
pad
((
date
.
getMonth
()
+
1
).
toString
()),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment