<inputtype="text"class="form-control typeahead"name="tags"id="tags"value="{% for tag in book.tags %}{{tag.name.strip()}}{% if not loop.last %}, {% endif %}{% endfor %}">
...
...
@@ -274,6 +289,21 @@
'source':{{_('Source')|safe|tojson}},
};
varlanguage='{{ g.user.locale }}';
$("#add-identifier-line").click(function(){
// create a random identifier type to have a valid name in form. This will not be used when dealing with the form