Merge pull request #4201 from kubernetes/ryanmcginnis-patch-1-1
Prevents sweetAlert in copyCode function from being cut off on page
This commit is contained in:
commit
3d5e8086b6
|
|
@ -35,7 +35,7 @@ function copyCode(elem){
|
|||
sweetAlert("Oh, no...","Sorry, your browser doesn't support document.execCommand('copy'), so we can't copy this code to your clipboard.");
|
||||
succeed = false;
|
||||
}
|
||||
if (succeed) sweetAlert("Copied to clipboard:",target.value);
|
||||
if (succeed) sweetAlert("Copied to clipboard: ",elem);
|
||||
return succeed;
|
||||
} else {
|
||||
sweetAlert("Oops!",elem + " not found when trying to copy code");
|
||||
|
|
|
|||
Loading…
Reference in New Issue