Skip to content
Snippets Groups Projects
Commit 4deae304 authored by bbaer's avatar bbaer
Browse files

removed hidden from x-to-clear when input field non empty

parent 3e47bfc3
No related branches found
No related tags found
2 merge requests!328Master,!326removed hidden from x-to-clear when input field non empty
Pipeline #5070 passed
...@@ -71,8 +71,11 @@ $(document).ready( function () { ...@@ -71,8 +71,11 @@ $(document).ready( function () {
return; return;
} }
var closeButton = $("<span>", { var closeButton = $("<span>", {
class: "qfq-clear-me-button hidden" class: "qfq-clear-me-button"
}); });
if (myInput.val() == '') {
closeButton.addClass("hidden");
}
closeButton.on("click", function(e) { closeButton.on("click", function(e) {
myInput.val(''); myInput.val('');
closeButton.addClass("hidden"); closeButton.addClass("hidden");
...@@ -90,4 +93,4 @@ $(document).ready( function () { ...@@ -90,4 +93,4 @@ $(document).ready( function () {
n.Helper.calendar(); n.Helper.calendar();
})(QfqNS); })(QfqNS);
}); });
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment