Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
112
Issues
112
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
c7e7ae60
Commit
c7e7ae60
authored
Apr 06, 2016
by
Leigh Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not show download button when creating a new profile.
parent
b28a65cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
www/aptui/js/manage_profile.js
www/aptui/js/manage_profile.js
+19
-9
No files found.
www/aptui/js/manage_profile.js
View file @
c7e7ae60
...
...
@@ -227,17 +227,21 @@ function (_, sup, filesize, JacksEditor, ShowImagingModal, moment, aptforms,
// is no script.
//
var
source
=
$
.
trim
(
$
(
'
#profile_script_textarea
'
).
val
());
var
href
=
"
show-profile.php?uuid=
"
+
profile_uuid
;
var
type
=
"
source
"
;
if
(
!
source
.
length
)
{
source
=
$
.
trim
(
$
(
'
#profile_rspec_textarea
'
).
val
());
$
(
'
#rspec_modal_download_button
'
)
.
attr
(
"
href
"
,
href
+
"
&rspec=true
"
);
type
=
"
rspec
"
;
}
else
{
if
(
profile_uuid
)
{
$
(
'
#rspec_modal_download_button
'
)
.
attr
(
"
href
"
,
href
+
"
&source=true
"
);
.
attr
(
"
href
"
,
"
show-profile.php?uuid=
"
+
profile_uuid
+
"
&
"
+
type
+
"
=true
"
);
}
else
{
$
(
'
#rspec_modal_download_button
'
).
addClass
(
"
hidden
"
);
}
$
(
'
#rspec_modal_upload_span
'
).
removeClass
(
"
hidden
"
);
$
(
'
#rspec_modal_editbuttons
'
).
removeClass
(
"
hidden
"
);
$
(
'
#rspec_modal_viewbuttons
'
).
addClass
(
"
hidden
"
);
...
...
@@ -254,10 +258,16 @@ function (_, sup, filesize, JacksEditor, ShowImagingModal, moment, aptforms,
// XML, but it is not intended to be edited.
//
var
source
=
$
.
trim
(
$
(
'
#profile_rspec_textarea
'
).
val
());
var
href
=
"
show-profile.php?uuid=
"
+
profile_uuid
+
"
&rspec=true
"
;
$
(
'
#rspec_modal_download_button
'
)
.
attr
(
"
href
"
,
href
+
"
&rspec=true
"
);
if
(
profile_uuid
)
{
$
(
'
#rspec_modal_download_button
'
)
.
attr
(
"
href
"
,
"
show-profile.php?uuid=
"
+
profile_uuid
+
"
&rspec=true
"
);
}
else
{
$
(
'
#rspec_modal_download_button
'
).
addClass
(
"
hidden
"
);
}
$
(
'
#rspec_modal_upload_span
'
).
addClass
(
"
hidden
"
);
$
(
'
#rspec_modal_editbuttons
'
).
addClass
(
"
hidden
"
);
$
(
'
#rspec_modal_viewbuttons
'
).
removeClass
(
"
hidden
"
);
...
...
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