Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
3f52e29c
Commit
3f52e29c
authored
Sep 10, 2020
by
Давид Добряков
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug creating
parent
222af203
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
14 deletions
+18
-14
timer.js
js/etersoft/timer.js
+16
-12
timersplash.html.tmpl
template/en/default/etersoft/timersplash.html.tmpl
+1
-1
timersplash.html.tmpl
template/ru/default/etersoft/timersplash.html.tmpl
+1
-1
No files found.
js/etersoft/timer.js
View file @
3f52e29c
...
...
@@ -133,22 +133,26 @@ window.addEventListener("load", function() {
document
.
querySelector
(
"#saveTime"
).
dataset
[
"time"
]
=
timespentValue
;
});
let
openButtonTop
=
document
.
querySelector
(
"#
commit_top"
);
let
openButtonTop
=
document
.
getElementById
(
"
commit_top"
);
openButtonTop
.
addEventListener
(
"click"
,
function
(
event
)
{
// cancel form submiting
event
.
preventDefault
();
if
(
openButtonTop
)
{
let
timespentValue
=
getTimespentValue
();
openButtonTop
.
addEventListener
(
"click"
,
function
(
event
)
{
// cancel form submiting
event
.
preventDefault
();
dialog
.
style
.
display
=
"block"
;
focusManager
.
capture
(
dialog
);
let
timespentValue
=
getTimespentValue
();
// write work time in input value
document
.
querySelector
(
"#realworktime"
).
value
=
localStorage
.
time
===
undefined
?
timespentValue
:
localStorage
.
time
;
document
.
querySelector
(
"#saveTime"
).
dataset
[
"time"
]
=
timespentValue
;
});
dialog
.
style
.
display
=
"block"
;
focusManager
.
capture
(
dialog
);
// write work time in input value
document
.
querySelector
(
"#realworktime"
).
value
=
localStorage
.
time
===
undefined
?
timespentValue
:
localStorage
.
time
;
document
.
querySelector
(
"#saveTime"
).
dataset
[
"time"
]
=
timespentValue
;
});
}
document
.
querySelector
(
"#realworktime"
)
...
...
template/en/default/etersoft/timersplash.html.tmpl
View file @
3f52e29c
...
...
@@ -46,4 +46,4 @@
<script language="javascript" type="text/javascript" src="js/etersoft/focusManager.js"></script>
<script language="javascript" type="text/javascript" src="js/etersoft/timer_common.js?25_10_2017"></script>
<script language="javascript" type="text/javascript" src="js/etersoft/timer.js?1
0
_09_2020"></script>
<script language="javascript" type="text/javascript" src="js/etersoft/timer.js?1
1
_09_2020"></script>
template/ru/default/etersoft/timersplash.html.tmpl
View file @
3f52e29c
...
...
@@ -46,4 +46,4 @@
<script language="javascript" type="text/javascript" src="js/etersoft/focusManager.js"></script>
<script language="javascript" type="text/javascript" src="js/etersoft/timer_common.js?25_10_2017"></script>
<script language="javascript" type="text/javascript" src="js/etersoft/timer.js?1
0
_09_2020"></script>
<script language="javascript" type="text/javascript" src="js/etersoft/timer.js?1
1
_09_2020"></script>
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