update for selecting all when click the pull command text.

This commit is contained in:
kunw 2016-07-13 17:46:51 +08:00
parent ea366357e9
commit 1b7f980235

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