Skip to content

Commit a762e15

Browse files
hkcoldteaVincent Lau
andauthored
Disable submit button after start transferring (#212)
Co-authored-by: Vincent Lau <vincent@mobile.hkcoldtea.com>
1 parent 64227a4 commit a762e15

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pages/pages.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ var Upload = `
138138
</svg>
139139
</div>
140140
<div class="row">
141-
<form id="upload-form">
141+
<form id="upload-form" onsubmit="submit.value = 'Transferring file, please wait.';
142+
submit.disabled = true; return true;">
142143
<h3>Send files or text</h3>
143144
<div class="form-group">
144145
<label for="files">

0 commit comments

Comments
 (0)