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
82b00008
Commit
82b00008
authored
Sep 17, 2019
by
八千流
Committed by
老广
Sep 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改更新资产的协议组,不能删除协议的问题 (#3228)
* [Update] 修改更新资产的协议组,不能删除协议的问题 * [Update] 修改前端属性名,避免冲突
parent
1457281b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
asset_create.html
apps/assets/templates/assets/asset_create.html
+3
-3
No files found.
apps/assets/templates/assets/asset_create.html
View file @
82b00008
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<div
class=
"col-md-2 col-md-offset-2"
style=
"text-align: right"
>
{{ fm.name }}
</div>
<div
class=
"col-md-2 col-md-offset-2"
style=
"text-align: right"
>
{{ fm.name }}
</div>
<div
class=
"col-md-6"
>
{{ fm.port }}
</div>
<div
class=
"col-md-6"
>
{{ fm.port }}
</div>
<div
class=
"col-md-1"
style=
"padding: 6px 0"
>
<div
class=
"col-md-1"
style=
"padding: 6px 0"
>
<a
class=
"btn btn-danger btn-xs btn-protocol btn-del"
><span
class=
"fa fa-minus"
></span>
</a>
<a
class=
"btn btn-danger btn-xs btn-protocol btn-del
ete
"
><span
class=
"fa fa-minus"
></span>
</a>
<a
class=
"btn btn-primary btn-xs btn-protocol btn-add"
style=
"display: none"
><span
class=
"fa fa-plus"
></span></a>
<a
class=
"btn btn-primary btn-xs btn-protocol btn-add"
style=
"display: none"
><span
class=
"fa fa-plus"
></span></a>
</div>
</div>
</div>
</div>
...
@@ -97,7 +97,7 @@ function format(item) {
...
@@ -97,7 +97,7 @@ function format(item) {
function
protocolBtnShow
()
{
function
protocolBtnShow
()
{
$
(
".btn-protocol.btn-add"
).
hide
();
$
(
".btn-protocol.btn-add"
).
hide
();
$
(
".btn-protocol.btn-add:last"
).
show
();
$
(
".btn-protocol.btn-add:last"
).
show
();
var
btnDel
=
$
(
".btn-protocol.btn-del"
);
var
btnDel
=
$
(
".btn-protocol.btn-del
ete
"
);
if
(
btnDel
.
length
===
1
)
{
if
(
btnDel
.
length
===
1
)
{
btnDel
.
addClass
(
"disabled"
)
btnDel
.
addClass
(
"disabled"
)
}
else
{
}
else
{
...
@@ -140,7 +140,7 @@ $(document).ready(function () {
...
@@ -140,7 +140,7 @@ $(document).ready(function () {
protocolRef
.
trigger
(
"change"
)
protocolRef
.
trigger
(
"change"
)
}
}
})
})
.
on
(
"click"
,
".btn-protocol.btn-del"
,
function
()
{
.
on
(
"click"
,
".btn-protocol.btn-del
ete
"
,
function
()
{
$
(
this
).
parent
().
parent
().
remove
();
$
(
this
).
parent
().
parent
().
remove
();
protocolBtnShow
()
protocolBtnShow
()
})
})
...
...
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