Discourage long event short forms

This commit is contained in:
Raphael Michel
2018-05-04 10:58:19 +02:00
parent c3da2fca9b
commit f4b77e6b03
3 changed files with 12 additions and 0 deletions

View File

@@ -358,6 +358,10 @@ var form_handlers = function (el) {
el.find(".simple-subevent-choice").change(function () {
$(this).closest("form").submit();
});
el.find("input[name=basics-slug]").bind("keyup keydown change", function () {
$(this).closest(".form-group").find(".slug-length").toggle($(this).val().length > 16);
});
};
$(function () {

View File

@@ -139,6 +139,9 @@ p.bigger {
.helper-display-inline {
display: inline !important;
}
.helper-display-none-soft {
display: none;
}
.helper-display-none {
display: none !important;
}