changeset 914:cfb6247a2266

Add auxiliary submit button
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 06 Jan 2021 12:56:33 +0900
parents d252bf61f048
children b47f64276427
files examples/common/default/default.css s4-main.js
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/examples/common/default/default.css	Tue Jan 05 18:50:11 2021 +0900
+++ b/examples/common/default/default.css	Wed Jan 06 12:56:33 2021 +0900
@@ -377,7 +377,7 @@
     top: 0em; left: 0;
 }
 form.summary input[type=submit],
-input[type="submit"].all, button#c.all {
+input[type="submit"].all, button.all {
     background: #cfc; padding: 0.4ex 2ex;
 }
 input[type="reset"] {margin-left: 4em;}
@@ -431,6 +431,7 @@
     visibility: visible; transform: rotateX(3600deg); transition: 30s;
 }
 span.loading {padding: 0 1em;}
+input.aux {margin-left: 10em; transform: scale(0.7);}
 
 /*
  * PR Web
--- a/s4-main.js	Tue Jan 05 18:50:11 2021 +0900
+++ b/s4-main.js	Wed Jan 06 12:56:33 2021 +0900
@@ -628,7 +628,10 @@
 		b.setAttribute("title", i.getAttribute("title"))
 		i.parentNode.replaceChild(b, i);
 		b.id = i.id;
-		i.remove();
+		// i.remove();
+		i.classList.add("aux");
+		i.value = "送信(予備)"
+		b.parentNode.appendChild(i);
 	    }
 	    i = document.getElementById("reload");
 	    if (i) i.addEventListener("click", ajaxPost, false);

yatex.org