From 46472fbd58823dd96ef970a383f545d5f3581fb7 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Fri, 27 Jan 2017 19:28:06 +0100 Subject: [PATCH] move showTooltip in password generator file --- src/api/tooltip.js | 8 -------- src/views/PasswordGenerator.vue | 12 ++++++++++-- 2 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 src/api/tooltip.js diff --git a/src/api/tooltip.js b/src/api/tooltip.js deleted file mode 100644 index 4ef92ec..0000000 --- a/src/api/tooltip.js +++ /dev/null @@ -1,8 +0,0 @@ -export function showTooltip(elem, msg) { - var classNames = elem.className; - elem.setAttribute('class', classNames + ' hint--right'); - elem.setAttribute('aria-label', msg); - setTimeout(function () { - elem.setAttribute('class', classNames); - }, 2000); -} \ No newline at end of file diff --git a/src/views/PasswordGenerator.vue b/src/views/PasswordGenerator.vue index 6135528..25ccee0 100644 --- a/src/views/PasswordGenerator.vue +++ b/src/views/PasswordGenerator.vue @@ -1,6 +1,6 @@