Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Roadmap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
Roadmap
Commits
ebcb75b1
Commit
ebcb75b1
authored
5 years ago
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
client: v1.0.6; Fixed
#36
- client: cancel deletion is deleting the corresponding item
parent
f0b93a27
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/static/js/main.js
+17
-20
17 additions, 20 deletions
client/static/js/main.js
client/version.json
+3
-3
3 additions, 3 deletions
client/version.json
with
20 additions
and
23 deletions
client/static/js/main.js
+
17
−
20
View file @
ebcb75b1
...
...
@@ -35,38 +35,22 @@ $(document).ready(function()
$
(
'
.button-delete-roadmap
'
).
click
(
function
(
event
)
{
var
response
=
confirm
(
"
Do you really want to delete this roadmap?
"
);
if
(
response
===
true
)
{
header
(
"
location:
"
+
this
.
href
);
}
confirmDelete
(
"
Do you really want to delete this roadmap?
"
,
this
.
href
,
event
);
});
$
(
'
.button-delete-milestone
'
).
click
(
function
(
event
)
{
var
response
=
confirm
(
"
Do you really want to delete this milestone?
"
);
if
(
response
===
true
)
{
header
(
"
location:
"
+
this
.
href
);
}
confirmDelete
(
"
Do you really want to delete this milestone?
"
,
this
.
href
,
event
);
});
$
(
'
.button-delete-task
'
).
click
(
function
(
event
)
{
var
response
=
confirm
(
"
Do you really want to delete this task?
"
);
if
(
response
===
true
)
{
header
(
"
location:
"
+
this
.
href
);
}
confirmDelete
(
"
Do you really want to delete this task?
"
,
this
.
href
,
event
);
});
$
(
'
.button-delete-subtask
'
).
click
(
function
(
event
)
{
var
response
=
confirm
(
"
Do you really want to delete this subtask?
"
);
if
(
response
===
true
)
{
header
(
"
location:
"
+
this
.
href
);
}
confirmDelete
(
"
Do you really want to delete this subtask?
"
,
this
.
href
,
event
);
});
$
(
'
#checkbox-done
'
).
click
(
function
()
...
...
@@ -96,6 +80,19 @@ $(document).ready(function()
createTrainMap
();
});
function
confirmDelete
(
message
,
redirectURL
,
event
)
{
var
response
=
confirm
(
message
);
if
(
response
===
true
)
{
header
(
"
location:
"
+
redirectURL
);
}
else
{
event
.
preventDefault
();
}
}
function
isNull
(
object
)
{
return
object
===
""
||
object
===
undefined
;
...
...
This diff is collapsed.
Click to expand it.
client/version.json
+
3
−
3
View file @
ebcb75b1
{
"version"
:
{
"name"
:
"v1.0.
5
"
,
"code"
:
6
,
"date"
:
"2
5
.09.19"
"name"
:
"v1.0.
6
"
,
"code"
:
7
,
"date"
:
"2
7
.09.19"
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment