| @@ -172,7 +172,9 @@ | |||
| <tr> | |||
| <th scope="row"> | |||
| 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> | |||
| <td class="autodoc_home_modal_tags"> | |||
| </td> | |||
| @@ -79,6 +79,12 @@ $(document).ready(function () { | |||
| 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 | |||
| $('.autodoc_tag_list').change(function (e) { | |||
| console.log(e); | |||