You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
523 B
16 lines
523 B
var jQuery, $, django;
|
|
|
|
(function () {
|
|
'use strict';
|
|
(jQuery || $ || django.jQuery)(function ($) {
|
|
$('.clearable-input').each(function () {
|
|
var clear = $(this).children().last();
|
|
$(this).find('input, select, textarea').not(clear).change(function () {
|
|
if (typeof clear.prop == "undefined") // older jQuery
|
|
clear.removeAttr('checked');
|
|
else
|
|
clear.prop('checked', false);
|
|
});
|
|
});
|
|
});
|
|
}());
|
|
|