Commit 573386b1 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Merge remote-tracking branch 'origin/f9528-xToClearInput' into B9720CheckboxVariousSetups

parents 8c1c0f2d e3448bd4
......@@ -58,5 +58,28 @@ $(document).ready( function () {
}
});
$('.qfq-clear-me').each(function() {
var myInput = $(this);
if(!myInput.is("input,textarea")) {
return;
}
var closeButton = $("<span>", {
class: "qfq-clear-me-button hidden"
});
closeButton.on("click", function(e) {
myInput.val('');
closeButton.addClass("hidden");
});
$(this).after(closeButton);
$(this).on("input", function() {
if(myInput.val() != '') {
closeButton.removeClass("hidden");
} else {
closeButton.addClass("hidden");
}
});
});
})(QfqNS);
});
\ No newline at end of file
......@@ -1063,7 +1063,31 @@ select.qfq-locked:invalid {
}
span.qfq-more-text {
display: none
display: none;
}
.qfq-clear-me-button {
display: block;
content: '\f00d';
font-family: FontAwesome;
right:21px;
width: 30px;
height: 30px;
top: 2px;
position:absolute;
cursor: pointer;
}
.qfq-clear-me-button:before {
content: '\f00d';
font-family: FontAwesome;
position: absolute;
color: #aaa;
font-size: 21px;
left: 12px;
}
input.qfq-clear-me {
padding-right: 28px;
}
// Droplets
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment