| | |
| | | <div class="note-wrapper"></div> |
| | | <div class="note-empty"> |
| | | <i class="layui-icon layui-icon-face-surprised"></i> |
| | | <p>没有便签</p> |
| | | <p>Нет заметок</p> |
| | | </div> |
| | | <div class="btn-circle" id="noteAddBtn" title="添加便签" style="position: absolute;"> |
| | | <div class="btn-circle" id="noteAddBtn" title="Добавить заметку" style="position: absolute;"> |
| | | <i class="layui-icon layui-icon-add-1"></i> |
| | | </div> |
| | | |
| | |
| | | var id = data ? data.id : undefined, content = data ? data.content : ''; |
| | | admin.open({ |
| | | id: 'layer-note-edit', |
| | | title: '便签', |
| | | title: 'Заметка', |
| | | type: 1, |
| | | area: 'auto', |
| | | offset: '50px', |
| | | shadeClose: true, |
| | | content: '<textarea id="noteEditText" placeholder="请输入内容" style="width: 280px;height: 150px;border: none;color: #666666;word-wrap: break-word;padding: 10px 20px;resize: vertical;">' + content + '</textarea>', |
| | | content: '<textarea id="noteEditText" placeholder="Введите текст" style="width: 280px;height: 150px;border: none;color: #666666;word-wrap: break-word;padding: 10px 20px;resize: vertical;">' + content + '</textarea>', |
| | | success: function () { |
| | | $('#noteEditText').change(function () { |
| | | content = $(this).val(); |