diff --git a/static/resources/js/components/repository/pull-command.directive.js b/static/resources/js/components/repository/pull-command.directive.js index a002f011c..5c8f12bd3 100644 --- a/static/resources/js/components/repository/pull-command.directive.js +++ b/static/resources/js/components/repository/pull-command.directive.js @@ -42,8 +42,13 @@ function link(scope, element, attrs, ctrl) { ctrl.harborRegUrl = $('#HarborRegUrl').val() + '/'; - + + element.find('input[type="text"]').on('click', function() { + $(this).select(); + }); + element.find('a').on('click', clickHandler); + function clickHandler(e) { element.find('input[type="text"]').select(); }