added close button for requestForCommand-modal
This commit is contained in:
@ -328,6 +328,9 @@ configureEditors: function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('#askForCommentsButton').on('click', this.requestComments.bind(this));
|
$('#askForCommentsButton').on('click', this.requestComments.bind(this));
|
||||||
|
$('#closeAskForCommentsButton').on('click', function(){
|
||||||
|
$('#comment-modal').modal('hide');
|
||||||
|
});
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
button.prop('disabled', false);
|
button.prop('disabled', false);
|
||||||
|
@ -6,4 +6,6 @@ textarea.form-control#question(style='resize:none;')
|
|||||||
p = ''
|
p = ''
|
||||||
/ data-cause='requestComments' is not used here right now, we pass the button #requestComments (not askForCommentsButton) as initiator of the action.
|
/ data-cause='requestComments' is not used here right now, we pass the button #requestComments (not askForCommentsButton) as initiator of the action.
|
||||||
/ But if we use this button, it will work since the correct cause is supplied
|
/ But if we use this button, it will work since the correct cause is supplied
|
||||||
button#askForCommentsButton.btn.btn-block.btn-primary(type='button' data-cause='requestComments' data-message-success=t('exercises.editor.request_for_comments_sent')) =t('exercises.implement.comment.request')
|
div
|
||||||
|
button#askForCommentsButton.btn.btn-block.btn-primary(type='button' data-cause='requestComments' data-message-success=t('exercises.editor.request_for_comments_sent')) =t('exercises.implement.comment.request')
|
||||||
|
button#closeAskForCommentsButton.btn.btn-block.btn-warning(type='button') =t('activerecord.attributes.request_for_comments.close')
|
||||||
|
@ -93,6 +93,7 @@ de:
|
|||||||
username: Benutzername
|
username: Benutzername
|
||||||
requested_at: Angefragezeitpunkt
|
requested_at: Angefragezeitpunkt
|
||||||
question: "Frage"
|
question: "Frage"
|
||||||
|
close: "Fenster schließen"
|
||||||
submission:
|
submission:
|
||||||
cause: Anlass
|
cause: Anlass
|
||||||
code: Code
|
code: Code
|
||||||
@ -277,7 +278,7 @@ de:
|
|||||||
request: "Kommentaranfrage stellen"
|
request: "Kommentaranfrage stellen"
|
||||||
question: "Bitte beschreiben Sie kurz ihre Probleme oder nennen Sie den Programmteil, zu dem Sie Feedback wünschen."
|
question: "Bitte beschreiben Sie kurz ihre Probleme oder nennen Sie den Programmteil, zu dem Sie Feedback wünschen."
|
||||||
rfc_intervention:
|
rfc_intervention:
|
||||||
text: "Es scheint so als würden sie Probleme mit der Aufgabe haben. Wenn Sie möchten, können wir Ihnen helfen!"
|
text: "Es scheint so als würden Sie Probleme mit der Aufgabe haben. Wenn Sie möchten, können wir Ihnen helfen!"
|
||||||
break_intervention:
|
break_intervention:
|
||||||
title: "Pause"
|
title: "Pause"
|
||||||
text: "Uns ist aufgefallen, dass du schon lange an dieser Aufgabe arbeitest. Möchtest du vielleicht später weiter machen um erstmal auf neue Gedanken zu kommen?"
|
text: "Uns ist aufgefallen, dass du schon lange an dieser Aufgabe arbeitest. Möchtest du vielleicht später weiter machen um erstmal auf neue Gedanken zu kommen?"
|
||||||
|
@ -114,6 +114,7 @@ en:
|
|||||||
username: Username
|
username: Username
|
||||||
requested_at: Request Date
|
requested_at: Request Date
|
||||||
question: "Question"
|
question: "Question"
|
||||||
|
close: Close window
|
||||||
submission:
|
submission:
|
||||||
cause: Cause
|
cause: Cause
|
||||||
code: Code
|
code: Code
|
||||||
|
Reference in New Issue
Block a user