generated from aljawaid/KanboardSkeletonPlugin
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- this will save a mouse click when selecting fields in login, password and two-factor pages
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,41 @@ | ||
// KANBOARD PLUGIN - JS FILE | ||
|
||
// SELECT INPUT ON MOUSOVER | ||
$(document).ready(function() { | ||
const input = document.getElementById("form-username"); | ||
if (input !== null) { | ||
input.addEventListener('mouseover', () => { | ||
input.select(); | ||
}) | ||
} | ||
}); | ||
|
||
// SELECT INPUT ON MOUSOVER | ||
$(document).ready(function() { | ||
const input = document.getElementById("form-password"); | ||
if (input !== null) { | ||
input.addEventListener('mouseover', () => { | ||
input.select(); | ||
}) | ||
} | ||
}); | ||
|
||
// SELECT INPUT ON MOUSOVER | ||
$(document).ready(function() { | ||
const input = document.getElementById("form-captcha"); | ||
if (input !== null) { | ||
input.addEventListener('mouseover', () => { | ||
input.select(); | ||
}) | ||
} | ||
}); | ||
|
||
// SELECT INPUT ON MOUSOVER | ||
$(document).ready(function() { | ||
const input = document.getElementById("form-code"); | ||
if (input !== null) { | ||
input.addEventListener('mouseover', () => { | ||
input.select(); | ||
}) | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters