mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 23:48:03 +08:00
Fix bug when saving empty step description
This commit is contained in:
parent
4c1a64ce4f
commit
46e8f80965
1 changed files with 1 additions and 1 deletions
|
@ -530,7 +530,7 @@
|
||||||
var $nameInput = $form.find("#step_name");
|
var $nameInput = $form.find("#step_name");
|
||||||
var nameValid = textValidator(ev, $nameInput, 1,
|
var nameValid = textValidator(ev, $nameInput, 1,
|
||||||
<%= Constants::NAME_MAX_LENGTH %>);
|
<%= Constants::NAME_MAX_LENGTH %>);
|
||||||
var $descrTextarea = $form.find("#step_description");
|
var $descrTextarea = $form.find("#step_description_textarea");
|
||||||
var $tinyMCEInput = TinyMCE.getContent();
|
var $tinyMCEInput = TinyMCE.getContent();
|
||||||
var descriptionValid = textValidator(ev, $descrTextarea, 0,
|
var descriptionValid = textValidator(ev, $descrTextarea, 0,
|
||||||
<%= Constants::RICH_TEXT_MAX_LENGTH %>, false, $tinyMCEInput);
|
<%= Constants::RICH_TEXT_MAX_LENGTH %>, false, $tinyMCEInput);
|
||||||
|
|
Loading…
Reference in a new issue