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:
Andrew Chen 2017-06-27 09:42:45 -07:00 committed by GitHub
commit 3d5e8086b6
1 changed files with 1 additions and 1 deletions

View File

@ -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");