Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
doodle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Arnaud
doodle
Commits
654022f0
Commit
654022f0
authored
Sep 02, 2020
by
=
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix when hour < 10 & table overflow
parent
b8a6ec64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
16 deletions
+12
-16
doodle.css
dist/css/doodle.css
+1
-1
doodle.js
dist/js/doodle.js
+11
-15
No files found.
dist/css/doodle.css
View file @
654022f0
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
}
}
.table-responsive
{
.table-responsive
{
overflow-x
:
visible
;
overflow-x
:
auto
;
}
}
.doodle-table
thead
tr
th
,
.doodle-table
tbody
tr
td
{
.doodle-table
thead
tr
th
,
.doodle-table
tbody
tr
td
{
...
...
dist/js/doodle.js
View file @
654022f0
...
@@ -827,24 +827,20 @@
...
@@ -827,24 +827,20 @@
this
.
eventAddHour
=
(
e
)
=>
{
this
.
eventAddHour
=
(
e
)
=>
{
e
.
stopImmediatePropagation
();
e
.
stopImmediatePropagation
();
let
splitHour
=
e
.
time
.
value
.
split
(
':'
);
let
val
=
e
.
time
.
value
;
let
splitHour
=
val
.
split
(
':'
);
//Permet de mettre dans le bon format DD:mm, le timePicker retourne mauvais format
if
(
splitHour
[
0
].
length
===
1
)
{
if
(
splitHour
[
0
].
length
===
1
)
{
let
goodHourFormat
=
'0'
+
splitHour
[
0
];
val
=
"0"
+
val
;
if
(
this
.
keyExist
(
goodHourFormat
))
{
}
this
.
hours
.
push
(
goodHourFormat
);
}
if
(
this
.
keyExist
(
val
))
{
}
else
{
if
(
splitHour
[
1
]
===
'00'
)
{
if
(
this
.
keyExist
(
e
.
time
.
value
))
{
if
(
this
.
keyExist
(
splitHour
[
0
]))
{
//Ajout dans le bon format DD dans le tableau, supprime les 00 en trop
this
.
hours
.
push
(
splitHour
[
0
]);
if
(
splitHour
[
1
]
===
'00'
)
{
if
(
this
.
keyExist
(
splitHour
[
0
]))
{
this
.
hours
.
push
(
splitHour
[
0
]);
}
}
else
{
this
.
hours
.
push
(
e
.
time
.
value
);
}
}
}
else
{
this
.
hours
.
push
(
val
);
}
}
}
}
...
...
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