##// 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 $('#preview-button').click(function() {
34 $('#preview-button').click(function() {
35 var data = {
35 var data = {
36 raw_text: $('textarea').val()
36 raw_text: $('textarea#id_text').val()
37 }
37 }
38
38
39 var diffUrl = '/api/preview/';
39 var diffUrl = '/api/preview/';
@@ -112,7 +112,7 b' function selectFileChoice() {'
112 showAsErrors(form, gettext('Computing PoW...'));
112 showAsErrors(form, gettext('Computing PoW...'));
113 $('.post-form-w').block({ message: gettext('Computing PoW...') })
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 var data = {
117 var data = {
118 msg: msg,
118 msg: msg,
@@ -30,7 +30,7 b''
30 * @param end End (right) text
30 * @param end End (right) text
31 */
31 */
32 function addMarkToMsg(start, end) {
32 function addMarkToMsg(start, end) {
33 var textareas = $('textarea');
33 var textareas = $('textarea#id_text');
34
34
35 for (var i = 0; i < textareas.length; i++) {
35 for (var i = 0; i < textareas.length; i++) {
36 var textarea = textareas[i];
36 var textarea = textareas[i];
General Comments 0
You need to be logged in to leave comments. Login now