Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
fe5ee658
Commit
fe5ee658
authored
Aug 07, 2017
by
Leigh B Stoller
Browse files
The rspec is now optional in profile, so do not try to show it.
parent
ffbbed2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/js/show-profile.js
View file @
fe5ee658
...
...
@@ -18,6 +18,7 @@ $(function ()
var
profile_pid
=
''
;
var
profile_version
=
''
;
var
version_uuid
=
null
;
var
gotrspec
=
0
;
var
gotscript
=
0
;
var
fromrepo
=
0
;
var
ajaxurl
=
""
;
...
...
@@ -41,6 +42,9 @@ $(function ()
var
fields
=
JSON
.
parse
(
_
.
unescape
(
$
(
'
#form-json
'
)[
0
].
textContent
));
amlist
=
JSON
.
parse
(
_
.
unescape
(
$
(
'
#amlist-json
'
)[
0
].
textContent
));
if
(
_
.
has
(
fields
,
"
profile_rspec
"
)
&&
fields
[
"
profile_rspec
"
]
!=
""
)
{
gotrspec
=
1
;
}
if
(
_
.
has
(
fields
,
"
profile_script
"
)
&&
fields
[
"
profile_script
"
]
!=
""
)
{
gotscript
=
1
;
}
...
...
@@ -70,7 +74,9 @@ $(function ()
canedit
:
window
.
CANEDIT
,
disabled
:
window
.
DISABLED
,
withpublishing
:
window
.
WITHPUBLISHING
,
fromrepo
:
fromrepo
fromrepo
:
fromrepo
,
gotrspec
:
gotrspec
,
gotscript
:
gotscript
,
});
show_html
=
aptforms
.
FormatFormFieldsHorizontal
(
show_html
,
{
"
wide
"
:
true
});
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment