diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-02-11 18:02:42 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-02-11 18:02:42 +0100 |
| commit | ec824db12597389c87184497796e8d0763c80b51 (patch) | |
| tree | fb53154ba33dc4e31fe9bb25677e14d1c8418701 /chimere/static | |
| parent | c70c2c8f4f58436df8d1c694a74c457954bd1070 (diff) | |
| download | Chimère-ec824db12597389c87184497796e8d0763c80b51.tar.bz2 Chimère-ec824db12597389c87184497796e8d0763c80b51.zip | |
New importer type XML - XSLT. Importer: add relation between category key and categories
* new importer type XML - XSLT
* associated form and UI modification
* add new model ImporterKeyCategories
* associated migration
* associated admin modification
* longer state field for Importers
* associated migration
Diffstat (limited to 'chimere/static')
| -rw-r--r-- | chimere/static/chimere/js/importer_interface.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chimere/static/chimere/js/importer_interface.js b/chimere/static/chimere/js/importer_interface.js index 2872e12..65bcf8c 100644 --- a/chimere/static/chimere/js/importer_interface.js +++ b/chimere/static/chimere/js/importer_interface.js @@ -36,6 +36,8 @@ django.jQuery(function($) { var edit_map_initialized; function refresh_importer_form(){ $('.form-row').not('.field-importer_type').hide(); + $('#importerkeycategories_set-group').hide(); + $('#key_categories-group').hide(); var importer_val = $('.field-importer_type select').val(); if (!importer_val) return; var form_filters = importer_form_filter[importer_val]; @@ -62,6 +64,10 @@ django.jQuery(function($) { } } else if (importer_val == 'XSLT' || importer_val == 'XXLT'){ + $('#importerkeycategories_set-group').show(); + $('#key_categories-group').show(); + $('#importerkeycategories_set-group .form-row').show(); + $('#key_categories-group .form-row').show(); $('.form-row.field-filtr').addClass('field-map'); $('#map_edit').show(); if (!edit_map_initialized){ |
