This commit is contained in:
Girish Ramakrishnan
2018-06-18 18:34:13 -07:00
parent 961220be3f
commit 5bd57b6dbd

View File

@@ -1,7 +1,6 @@
'use strict';
/* global Clipboard:false */
/* global asyncForEach:false */
angular.module('Application').controller('UsersController', ['$scope', '$location', '$timeout', 'Client', function ($scope, $location, $timeout, Client) {
Client.onReady(function () { if (!Client.hasScope('users')) $location.path('/'); });
@@ -339,8 +338,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
});
};
$scope.copyToClipboard = function (value) {
$scope.copyToClipboard = function (/*value*/) {
document.execCommand('copy');
};
@@ -386,7 +384,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
e.clearSelection();
});
clipboard.on('error', function(e) {
clipboard.on('error', function(/*e*/) {
$('#setupLinkButton').tooltip({
title: 'Press Ctrl+C to copy',
trigger: 'manual'