##// END OF EJS Templates
Insert markup only to the text textarea
neko259 -
r1768:e1a0b47b default
parent child Browse files
Show More
@@ -33,7 +33,7 b" var form = $('#form');"
33 33
34 34 $('#preview-button').click(function() {
35 35 var data = {
36 raw_text: $('textarea').val()
36 raw_text: $('textarea#id_text').val()
37 37 }
38 38
39 39 var diffUrl = '/api/preview/';
@@ -112,7 +112,7 b' function selectFileChoice() {'
112 112 showAsErrors(form, gettext('Computing PoW...'));
113 113 $('.post-form-w').block({ message: gettext('Computing PoW...') })
114 114
115 var msg = $('textarea').val().trim();
115 var msg = $('textarea#id_text').val().trim();
116 116
117 117 var data = {
118 118 msg: msg,
@@ -30,7 +30,7 b''
30 30 * @param end End (right) text
31 31 */
32 32 function addMarkToMsg(start, end) {
33 var textareas = $('textarea');
33 var textareas = $('textarea#id_text');
34 34
35 35 for (var i = 0; i < textareas.length; i++) {
36 36 var textarea = textareas[i];
General Comments 0
You need to be logged in to leave comments. Login now