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
+1 -1
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."); sweetAlert("Oh, no...","Sorry, your browser doesn't support document.execCommand('copy'), so we can't copy this code to your clipboard.");
succeed = false; succeed = false;
} }
if (succeed) sweetAlert("Copied to clipboard:",target.value); if (succeed) sweetAlert("Copied to clipboard: ",elem);
return succeed; return succeed;
} else { } else {
sweetAlert("Oops!",elem + " not found when trying to copy code"); sweetAlert("Oops!",elem + " not found when trying to copy code");