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.
12 lines
454 B
12 lines
454 B
(function($) {
|
|
$(document).on('ready', function() {
|
|
$('select[name="action"]', '#changelist-form').on('change', function() {
|
|
if ($(this).val() == 'export_admin_action') {
|
|
$('select[name="file_format"]', '#changelist-form').parent().show();
|
|
} else {
|
|
$('select[name="file_format"]', '#changelist-form').parent().hide();
|
|
}
|
|
});
|
|
$('select[name="action"]', '#changelist-form').change();
|
|
});
|
|
})(django.jQuery);
|
|
|