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
d8d91744
Unverified
Commit
d8d91744
authored
Jul 16, 2019
by
BaiJiangJie
Committed by
GitHub
Jul 16, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2962 from jumpserver/domain_detail_delete_bug
[Bugfix] 修复网域详情页 删除功能无效的bug
parents
bd2f0168
74aa5157
Hide 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 @
d8d91744
...
@@ -24,7 +24,7 @@
...
@@ -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>
<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>
<li
class=
"pull-right"
>
<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' %}
<i
class=
"fa fa-trash-o"
></i>
{% trans 'Delete' %}
</a>
</a>
</li>
</li>
...
@@ -127,6 +127,15 @@ $(document).ready(function(){
...
@@ -127,6 +127,15 @@ $(document).ready(function(){
setTimeout
(
function
()
{
setTimeout
(
function
()
{
$data_table
.
ajax
.
reload
();
$data_table
.
ajax
.
reload
();
},
3000
);
},
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>
</script>
{% endblock %}
{% 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