update
This commit is contained in:
@ -124,7 +124,11 @@
|
||||
body: JSON.stringify(data)
|
||||
})
|
||||
.then(function (r) { return r.json(); })
|
||||
.then(function (d) { applyImages(d.images, kindOf(batchForm.getAttribute('action')), main.value); if (stat) stat.textContent = d.count + ' 张 · ' + d.groups + ' 组'; })
|
||||
.then(function (d) {
|
||||
applyImages(d.images, kindOf(batchForm.getAttribute('action')), main.value);
|
||||
if (stat) stat.textContent = d.count + ' 张 · ' + d.groups + ' 组';
|
||||
clearSelection();
|
||||
})
|
||||
.catch(function (err) { alert('合并失败:' + err); });
|
||||
});
|
||||
|
||||
@ -146,6 +150,10 @@
|
||||
return m ? m[1] : 'street';
|
||||
}
|
||||
|
||||
function clearSelection() {
|
||||
document.querySelectorAll('input[name="main"]:checked, input[name="img"]:checked').forEach(function (c) { c.checked = false; });
|
||||
}
|
||||
|
||||
// 更新某个主图的「显示副图」开关:按最新副图数创建/更新/移除按钮,文案随展开态变化。
|
||||
function updateToggle(mainId, detailCount) {
|
||||
var cell = document.querySelector('.cell[data-img-id="' + mainId + '"]');
|
||||
|
||||
Reference in New Issue
Block a user