summaryrefslogtreecommitdiff
path: root/static/admin/js/prepopulate_init.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/admin/js/prepopulate_init.js')
-rw-r--r--static/admin/js/prepopulate_init.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/static/admin/js/prepopulate_init.js b/static/admin/js/prepopulate_init.js
deleted file mode 100644
index 184df92..0000000
--- a/static/admin/js/prepopulate_init.js
+++ /dev/null
@@ -1,10 +0,0 @@
-(function($) {
- 'use strict';
- var fields = $('#django-admin-prepopulated-fields-constants').data('prepopulatedFields');
- $.each(fields, function(index, field) {
- $('.empty-form .form-row .field-' + field.name + ', .empty-form.form-row .field-' + field.name).addClass('prepopulated_field');
- $(field.id).data('dependency_list', field.dependency_list).prepopulate(
- field.dependency_ids, field.maxLength, field.allowUnicode
- );
- });
-})(django.jQuery);