mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
removed unneeded comments
This commit is contained in:
parent
f2d5066dc7
commit
2cbb8ba41a
4 changed files with 2 additions and 4 deletions
|
@ -230,7 +230,7 @@ var HelperModule = (function(){
|
|||
return helpers;
|
||||
})();
|
||||
|
||||
// initialize code markup in step descriptions and text results
|
||||
// initialize code markup in rich text fields
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
$('pre code [class^=language]').each(function(i, block) {
|
||||
|
|
|
@ -183,7 +183,7 @@ function processResult(ev, resultTypeEnum, editMode, forS3) {
|
|||
var $nameInput = $form.find("#result_name");
|
||||
var nameValid = textValidator(ev, $nameInput, 0,
|
||||
<%= Constants::NAME_MAX_LENGTH %>);
|
||||
var $textInput = TinyMCE.getContent();// $form.find("#result_result_text_attributes_text");
|
||||
var $textInput = TinyMCE.getContent();
|
||||
textValidator(ev, $textInput, 1, <%= Constants::TEXT_MAX_LENGTH %>, false, true);
|
||||
break;
|
||||
case ResultTypeEnum.COMMENT:
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
<%= f.fields_for :result_text do |ff| %>
|
||||
<div class="form-group">
|
||||
<%= ff.tiny_mce_editor(:text, value: @result.result_text.text) %>
|
||||
<%#= ff.text_area(:text, class: 'tinymce', cols: 120, rows: 40, value: @result.result_text.text ) %>
|
||||
</div>
|
||||
<% end %><br />
|
||||
<%= f.submit t("result_texts.edit.update"), class: 'btn btn-primary save-result', onclick: "processResult(event, ResultTypeEnum.TEXT, true);" %>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
<%= f.fields_for :result_text do |ff| %>
|
||||
<div class="form-group">
|
||||
<%= ff.tiny_mce_editor(:text) %>
|
||||
<%#= ff.text_area(:text, class: 'tinymce', cols: 120, rows: 40) %>
|
||||
</div>
|
||||
<% end %><br />
|
||||
<%= f.submit t("result_texts.new.create"), class: 'btn btn-primary save-result', onclick: "processResult(event, ResultTypeEnum.TEXT, false);" %>
|
||||
|
|
Loading…
Reference in a new issue