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
92aeecbc
Commit
92aeecbc
authored
Jul 15, 2019
by
BaiJiangJie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 优化创建RemoteApp前端逻辑
parent
9219786f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
remote_app_create_update.html
...ions/templates/applications/remote_app_create_update.html
+11
-8
No files found.
apps/applications/templates/applications/remote_app_create_update.html
View file @
92aeecbc
...
@@ -107,17 +107,20 @@ function hiddenFields(){
...
@@ -107,17 +107,20 @@ function hiddenFields(){
});
});
$
(
'.'
+
app_type
+
'-fields'
).
removeClass
(
'hidden'
);
$
(
'.'
+
app_type
+
'-fields'
).
removeClass
(
'hidden'
);
}
}
function
constructParams
(
obj
)
{
function
constructParams
(
data
)
{
var
type
=
[
'chrome'
,
'mysql_workbench'
,
'vmware_client'
,
'custom'
];
var
type
List
=
[
'chrome'
,
'mysql_workbench'
,
'vmware_client'
,
'custom'
];
var
params
=
{};
var
params
=
{};
type
.
forEach
(
function
(
attr
)
{
for
(
var
type
in
typeList
){
if
(
obj
.
type
===
attr
){
if
(
data
.
type
===
type
){
for
(
var
k
in
obj
){
for
(
var
k
in
data
){
if
(
k
.
startsWith
(
obj
.
type
)){
params
[
k
]
=
obj
[
k
]}
if
(
k
.
startsWith
(
data
.
type
)){
params
[
k
]
=
data
[
k
]
}
}
}
break
}
}
}
);
}
return
params
return
params
;
}
}
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
'.select2'
).
select2
({
$
(
'.select2'
).
select2
({
...
...
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