Browse Source

add tags button

master
Pascal Gloor 5 years ago
parent
commit
4322c59267
2 changed files with 9 additions and 1 deletions
  1. 3
    1
      www/index.html
  2. 6
    0
      www/js/autodoc.js

+ 3
- 1
www/index.html View File

<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>

+ 6
- 0
www/js/autodoc.js View File

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);

Loading…
Cancel
Save