Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
d5117808
Commit
d5117808
authored
Apr 23, 2018
by
Francesc Guasch
Committed by
Francesc Guasch
Apr 26, 2018
Browse files
bug(view_machine): only copy if there is textarea
fixes issue #684
parent
83532b52
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/js/ravada.js
View file @
d5117808
...
...
@@ -295,6 +295,8 @@
$scope
.
copy_password
=
function
()
{
$scope
.
view_password
=
1
;
var
copyTextarea
=
document
.
querySelector
(
'
.js-copytextarea
'
);
if
(
copyTextarea
)
{
copyTextarea
.
select
();
try
{
var
successful
=
document
.
execCommand
(
'
copy
'
);
...
...
@@ -303,6 +305,8 @@
}
catch
(
err
)
{
console
.
log
(
'
Oops, unable to copy
'
);
}
}
};
};
...
...
Write
Preview
Supports
Markdown
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