# HG changeset patch # User HIROSE Yuuji # Date 1609820066 -32400 # Node ID 043748271354f2f321ad40e51abb6dbfd7f8a612 # Parent 1442d73c55e5906a457071028ec9e3104895813c Copy attributes from old POST button to new ajax-post button diff -r 1442d73c55e5 -r 043748271354 s4-main.js --- a/s4-main.js Tue Jan 05 13:03:51 2021 +0900 +++ b/s4-main.js Tue Jan 05 13:14:26 2021 +0900 @@ -620,8 +620,10 @@ console.log("b="+b+", tc="+b.textContent); b.addEventListener("click", ajaxPost, false); // i.insertAdjacentElement('afterend', b); + b.setAttribute("class", i.getAttribute("class")) + b.setAttribute("title", i.getAttribute("title")) + i.parentNode.replaceChild(b, i); b.id = i.id; - i.parentNode.replaceChild(b, i); i.remove(); } i = document.getElementById("reload");