diff src/thread.html.luan @ 52:9f8ebc757814

add convert urls
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 23 Nov 2022 23:29:16 -0700
parents 78b2d6995244
children 8b5b1bce7d6b
line wrap: on
line diff
--- a/src/thread.html.luan	Tue Nov 22 22:57:43 2022 -0700
+++ b/src/thread.html.luan	Wed Nov 23 23:29:16 2022 -0700
@@ -91,7 +91,7 @@
 				let post = postDiv.getAttribute('post');
 				let text = postDiv.querySelector('textarea').value;
 				cancelEdit(event);
-				let postData = 'post=' + post + '&text=' + encodeURIComponent(text);
+				let postData = 'post=' + post + '&text=' + encodeURIComponent(text) + '&convert_urls=' + event.convertUrls;
 				ajax('save_edit.js',postData);
 			}
 			function updated(postId,html) {
@@ -105,7 +105,7 @@
 				let textarea = postDiv.querySelector('textarea')
 				let text = textarea.value;
 				textarea.value = '';
-				let postData = 'root=<%=root_id%>&text=' + encodeURIComponent(text);
+				let postData = 'root=<%=root_id%>&text=' + encodeURIComponent(text) + '&convert_urls=' + event.convertUrls;
 				ajax('new_post.js',postData);
 			}
 			function added(postId,html,thread_size) {