Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses-legacy
Commits
eee2f9dd
Commit
eee2f9dd
authored
5 years ago
by
Fernando Ribeiro
Browse files
Options
Download
Email Patches
Plain Diff
Fix: removing required from textarea in activity_discussion
parent
4878d459
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
courses_legacy/static/js/activities/controllers.js
courses_legacy/static/js/activities/controllers.js
+0
-1
courses_legacy/static/templates/activity_discussion.html
courses_legacy/static/templates/activity_discussion.html
+4
-4
No files found.
courses_legacy/static/js/activities/controllers.js
View file @
eee2f9dd
...
...
@@ -89,7 +89,6 @@
$scope
.
save_answer
=
function
()
{
// if there is no content, the edit form must not disappear from screen
if
(
$scope
.
topic
.
content
===
undefined
||
$scope
.
topic
.
content
===
""
){
throw
"
Content field is empty
"
return
;
}
$scope
.
sending
=
true
;
...
...
This diff is collapsed.
Click to expand it.
courses_legacy/static/templates/activity_discussion.html
View file @
eee2f9dd
...
...
@@ -132,7 +132,7 @@
<form
class=
"comments-form"
ng-if=
"topic.show_comment_input"
ng-init=
"comment = new_comment()"
>
<textarea
ui-tinymce
ng-model=
"comment.text"
placeholder=
"Escreva aqui o seu comentário"
required
></textarea>
placeholder=
"Escreva aqui o seu comentário"
></textarea>
<button
id=
"select-file-topic"
class=
"btn btn-xs btn-primary attach pull-left"
ngf-select=
"uploadCommentFiles($file, comment)"
...
...
@@ -164,7 +164,7 @@
<form
class=
"comments-form"
ng-if=
"comment.updating"
ng-init=
"changed_comment = comment"
>
<textarea
ui-tinymce
ng-model=
"changed_comment.text"
placeholder=
"Escreva aqui o seu comentário"
required
></textarea>
placeholder=
"Escreva aqui o seu comentário"
></textarea>
<button
id=
"select-file-topic"
class=
"btn btn-xs btn-primary attach pull-left"
ngf-select=
"uploadCommentFiles($file, changed_comment)"
...
...
@@ -216,7 +216,7 @@
<form
class=
"comments-form"
ng-if=
"reply.updating"
ng-init=
"changed_reply = reply"
>
<textarea
ui-tinymce
ng-model=
"changed_reply.text"
placeholder=
"Escreva aqui o seu comentário"
required
></textarea>
placeholder=
"Escreva aqui o seu comentário"
></textarea>
<button
id=
"select-file-topic"
class=
"btn btn-xs btn-primary attach pull-left"
ngf-select=
"uploadCommentFiles($file, changed_reply)"
...
...
@@ -253,7 +253,7 @@
<form
class=
"comments-form"
ng-if=
"comment.show_comment_input"
ng-init=
"reply = new_comment()"
>
<textarea
ui-tinymce
ng-model=
"reply.text"
placeholder=
"Escreva aqui o seu comentário"
required
></textarea>
placeholder=
"Escreva aqui o seu comentário"
></textarea>
<button
id=
"select-file-comment"
class=
"btn btn-xs btn-primary attach pull-left"
ngf-select=
"uploadCommentFiles($file, reply)"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment