removed unneeded comments

This commit is contained in:
zmagod 2017-01-19 12:54:48 +01:00
parent f2d5066dc7
commit 2cbb8ba41a
4 changed files with 2 additions and 4 deletions

View file

@ -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) {

View file

@ -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:

View file

@ -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);" %>

View file

@ -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);" %>