Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
74aa5157
Commit
74aa5157
authored
Jul 16, 2019
by
jym503558564
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复网域详情页 删除功能无效的bug
parent
875a069a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
domain_detail.html
apps/assets/templates/assets/domain_detail.html
+12
-2
No files found.
apps/assets/templates/assets/domain_detail.html
View file @
74aa5157
...
...
@@ -24,7 +24,7 @@
<a
class=
"btn btn-outline btn-default"
href=
"{% url 'assets:domain-update' pk=object.id %}"
><i
class=
"fa fa-edit"
></i>
{% trans 'Update' %}
</a>
</li>
<li
class=
"pull-right"
>
<a
class=
"btn btn-outline btn-danger btn-del"
>
<a
class=
"btn btn-outline btn-danger btn-del
btn-delete-domain
"
>
<i
class=
"fa fa-trash-o"
></i>
{% trans 'Delete' %}
</a>
</li>
...
...
@@ -127,6 +127,15 @@ $(document).ready(function(){
setTimeout
(
function
()
{
$data_table
.
ajax
.
reload
();
},
3000
);
});
})
.
on
(
'click'
,
'.btn-delete-domain'
,
function
()
{
var
$this
=
$
(
this
);
var
name
=
"{{ object.name }}"
;
var
uid
=
"{{ object.id }}"
;
var
the_url
=
'{% url "api-assets:domain-detail" pk=DEFAULT_PK %}'
.
replace
(
'{{ DEFAULT_PK }}'
,
uid
);
var
redirect_url
=
"{% url 'assets:domain-list' %}"
;
objectDelete
(
$this
,
name
,
the_url
,
redirect_url
);
})
;
</script>
{% endblock %}
\ No newline at end of file
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