浏览代码

edit name

master
Pascal Gloor 5 年前
父节点
当前提交
b4399c66dd
共有 2 个文件被更改,包括 14 次插入1 次删除
  1. 4
    1
      www/index.html
  2. 10
    0
      www/js/autodoc.js

+ 4
- 1
www/index.html 查看文件

@@ -148,7 +148,10 @@
<table class="table table-striped table-sm">
<tr>
<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>
<th scope="row">Created</th>

+ 10
- 0
www/js/autodoc.js 查看文件

@@ -57,6 +57,16 @@ $(document).ready(function () {
$(e.target).addClass("active");
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 () {

正在加载...
取消
保存