diff --git a/legacy/src/app/controllers/pod_details.js b/legacy/src/app/controllers/pod_details.js index 8af3a3e05b..4e14d97509 100644 --- a/legacy/src/app/controllers/pod_details.js +++ b/legacy/src/app/controllers/pod_details.js @@ -25,8 +25,7 @@ function PodDetailsController( FabricsManager, SpacesManager, ValidationService, - $log, - $document + $log ) { // Checks if on RSD page $scope.onRSDSection = PodsManager.onRSDSection; @@ -426,12 +425,12 @@ function PodDetailsController( $scope.copyToClipboard = function($event) { var clipboardParent = $event.currentTarget.previousSibling; var clipboardValue = clipboardParent.previousSibling.value; - var el = $document.createElement("textarea"); + var el = document.createElement("textarea"); el.value = clipboardValue; - $document.body.appendChild(el); + document.body.appendChild(el); el.select(); - $document.execCommand("copy"); - $document.body.removeChild(el); + document.execCommand("copy"); + document.body.removeChild(el); }; // Called to cancel composition. diff --git a/legacy/src/app/partials/pod-details.html b/legacy/src/app/partials/pod-details.html index 94049ece17..27371ebb5d 100644 --- a/legacy/src/app/partials/pod-details.html +++ b/legacy/src/app/partials/pod-details.html @@ -65,9 +65,8 @@