Merge pull request #537 from wknet123/master

Update for selecting all when click the pull command text.
This commit is contained in:
kun wang 2016-07-13 18:14:39 +08:00 committed by GitHub
commit 2979481749

View File

@ -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();
}