mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-26 13:04:01 +00:00
16 lines
523 B
JavaScript
16 lines
523 B
JavaScript
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);
|
|
});
|
|
});
|
|
});
|
|
}());
|