diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-11-04 15:02:46 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-11-04 15:06:24 +0100 |
| commit | ad5de5b2fb255e84e2e6be7250aebc756faae734 (patch) | |
| tree | 38619fca79a273f1beef23487e8f69555d304d76 /chimere/static | |
| parent | c023e15be620717339a780b6f4960649a9952afe (diff) | |
| download | Chimère-ad5de5b2fb255e84e2e6be7250aebc756faae734.tar.bz2 Chimère-ad5de5b2fb255e84e2e6be7250aebc756faae734.zip | |
Imports: add an automatic update option
When set to True:
* can be imported automatically by the chimere_import command
* new items are directly available (and not at the Imported state)
Admin interface and model updated.
Diffstat (limited to 'chimere/static')
| -rw-r--r-- | chimere/static/chimere/js/importer_interface.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/chimere/static/chimere/js/importer_interface.js b/chimere/static/chimere/js/importer_interface.js index f66b306..e15aacd 100644 --- a/chimere/static/chimere/js/importer_interface.js +++ b/chimere/static/chimere/js/importer_interface.js @@ -1,26 +1,30 @@ django.jQuery(function($) { var importer_form_filter = { OSM:new Array('field-filtr', 'field-default_name', 'field-categories', - 'field-source', 'field-overwrite'), + 'field-source', 'field-overwrite', + 'field-automatic_update'), KML:new Array('field-source', 'field-source_file', 'field-default_name', 'field-filtr', 'field-zipped', 'field-origin', 'field-license', 'field-categories', 'field-overwrite', - 'field-get_description'), + 'field-get_description', 'field-automatic_update'), SHP:new Array('field-source', 'field-source_file', 'field-default_name', 'field-zipped', 'field-origin', 'field-srid', - 'field-license', 'field-categories', 'field-overwrite'), + 'field-license', 'field-categories', 'field-overwrite', + 'field-automatic_update'), RSS:new Array('field-source', 'field-default_name', 'field-origin', 'field-srid', 'field-license', 'field-categories', - 'field-overwrite', 'field-get_description'), + 'field-overwrite', 'field-get_description', + 'field-automatic_update'), CSV:new Array('field-source', 'field-source_file', 'field-default_name', 'field-origin', 'field-srid', 'field-license', 'field-categories', 'field-overwrite', - 'field-get_description'), + 'field-get_description', 'field-automatic_update'), XSLT:new Array('field-source', 'field-source_file', 'field-source_file_alt', 'field-default_name', 'field-origin', 'field-srid', 'field-license', 'field-categories', 'field-overwrite', - 'field-get_description', 'field-default_localisation') + 'field-get_description', 'field-default_localisation', + 'field-automatic_update') } var osm_map_initialized; var edit_map_initialized; |
