summaryrefslogtreecommitdiff
path: root/html/content/js/Forms/clearinput.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/content/js/Forms/clearinput.js')
-rw-r--r--html/content/js/Forms/clearinput.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/html/content/js/Forms/clearinput.js b/html/content/js/Forms/clearinput.js
deleted file mode 100644
index 903244f..0000000
--- a/html/content/js/Forms/clearinput.js
+++ /dev/null
@@ -1,16 +0,0 @@
-$$plugins.define('clearinput', function (element, options) {
- var input = element.previousElementSibling;
-
- input.addEventListener("keyup", function (e) {
- e.preventDefault();
- if (input.value !== "") {
- element.classList.add("active");
- }
- });
-
- element.addEventListener("click", function (e) {
- e.preventDefault();
- input.value = "";
- element.classList.remove("active");
- });
-});