Browse Source

edit name

master
Pascal Gloor 5 years ago
parent
commit
b4399c66dd
2 changed files with 14 additions and 1 deletions
  1. 4
    1
      www/index.html
  2. 10
    0
      www/js/autodoc.js

+ 4
- 1
www/index.html View File

<table class="table table-striped table-sm"> <table class="table table-striped table-sm">
<tr> <tr>
<th scope="row">Name</th> <th scope="row">Name</th>
<td class="autodoc_home_modal_name"></td>
<td>
<span class="autodoc_home_modal_name"></span>
<input type="text" class="d-none autodoc_home_modal_name" value="">
</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Created</th> <th scope="row">Created</th>

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

$(e.target).addClass("active"); $(e.target).addClass("active");
home_modal_resize($(e.target).html()); home_modal_resize($(e.target).html());
}); });

$('span.autodoc_home_modal_name').click(function(e) {
$(e.target).addClass('d-none');
$('button.autodoc_home_modal_name').removeClass('d-none');
home_modal_edit_name();
});

$('button.autodoc_home_moal_name').keypress(function(e) {
console.log(e);
});
}); });


$(window).bind("hashchange", function () { $(window).bind("hashchange", function () {

Loading…
Cancel
Save