Commit f6dcde52 authored by fred's avatar fred

use select2 when selecting emission or category

parent 9e0df07d
...@@ -462,6 +462,11 @@ span.add-on { ...@@ -462,6 +462,11 @@ span.add-on {
margin-left: 3px; margin-left: 3px;
} }
#s2id_id_category,
#s2id_id_emission {
width: 30em;
}
[class^="icon-"]:after, [class*=" icon-"]:after, [class^="icon-"]:after, [class*=" icon-"]:after,
[class^="icon-"]:before, [class*=" icon-"]:before { [class^="icon-"]:before, [class*=" icon-"]:before {
......
...@@ -63,6 +63,8 @@ ...@@ -63,6 +63,8 @@
$(document).ready(function() { $(document).ready(function() {
$('select[multiple=multiple]').select2(); $('select[multiple=multiple]').select2();
$('select[multiple=multiple]').next('.helptext').hide(); $('select[multiple=multiple]').next('.helptext').hide();
$('select#id_emission').select2();
$('select#id_category').select2();
}); });
</script> </script>
{% endblock %} {% endblock %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment