| <tr> | <tr> | ||||
| <th scope="row"> | <th scope="row"> | ||||
| Tags | Tags | ||||
| <button type="button" class="btn btn-outline-primary btn-sm">Add</button> | |||||
| <button type="button" class="autodoc_home_modal_tags_show btn btn-outline-primary btn-sm">Add</button> | |||||
| <input type="text" class="d-none form-control typeahead autodoc_home_modal_tags_add" autocomplete="off" | |||||
| data-provide="typeahead"> | |||||
| </th> | </th> | ||||
| <td class="autodoc_home_modal_tags"> | <td class="autodoc_home_modal_tags"> | ||||
| </td> | </td> |
| document_update_name(docid, $(e.target).val(), docid); | document_update_name(docid, $(e.target).val(), docid); | ||||
| }); | }); | ||||
| // modal show typeahead | |||||
| $('.autodoc_home_modal_tags_show').click(function(e) { | |||||
| $('.autodoc_home_modal_tags_show').addClass('d-none'); | |||||
| $('.autodoc_home_modal_tags_add').removeClass('d-none'); | |||||
| }) | |||||
| // tag menu select | // tag menu select | ||||
| $('.autodoc_tag_list').change(function (e) { | $('.autodoc_tag_list').change(function (e) { | ||||
| console.log(e); | console.log(e); |