添加并更改了一些新特性,优化网页操作逻辑
This commit is contained in:
1 parent
e09fc8ae6a
commit
c3bfce7afb
11 files changed
+704
-132
No files matched your search
+4
-3
@@ -373,7 +373,7 @@ admin_topbar('content');
|
||||
</div>
|
||||
</form>
|
||||
<?php if ($logo !== ''): ?>
|
||||
<form method="post" onsubmit="return confirm('确认恢复默认 LOGO?')">
|
||||
<form method="post" data-confirm="确认恢复默认 LOGO?当前自定义图标将被移除。">
|
||||
<?= csrf_field() ?><input type="hidden" name="act" value="logo_clear">
|
||||
<div style="margin-top:8px"><button type="submit" class="btn btn-sm btn-danger">恢复默认 LOGO</button></div>
|
||||
</form>
|
||||
@@ -442,7 +442,7 @@ admin_topbar('content');
|
||||
<button type="submit" class="btn btn-primary">保存搜索引擎</button>
|
||||
</div>
|
||||
</form>
|
||||
<form method="post" onsubmit="return confirm('确认恢复为默认的 4 个搜索引擎?')">
|
||||
<form method="post" data-confirm="确认恢复为默认的 4 个搜索引擎?当前自定义引擎将全部被覆盖。">
|
||||
<?= csrf_field() ?><input type="hidden" name="act" value="engines_reset">
|
||||
<button type="submit" class="btn btn-sm btn-danger">恢复默认引擎</button>
|
||||
</form>
|
||||
@@ -642,7 +642,8 @@ admin_topbar('content');
|
||||
var row = ev.target.closest('.l-row');
|
||||
if (!row) return;
|
||||
if (ev.target.classList.contains('l-del')) {
|
||||
if (confirm('确认删除该快捷站点?')) row.remove();
|
||||
(window.HomePage && HomePage.ask ? HomePage.ask('确认删除该快捷站点?', { okText: '删除' }) : Promise.resolve(window.confirm('确认删除该快捷站点?')))
|
||||
.then(function (ok) { if (ok) row.remove(); });
|
||||
} else if (ev.target.classList.contains('l-up') || ev.target.classList.contains('l-down')) {
|
||||
var sib = ev.target.classList.contains('l-up') ? row.previousElementSibling : row.nextElementSibling;
|
||||
if (sib && sib.classList.contains('l-row')) {
|
||||
|
||||
Reference in new issue
Block a user